Changeset 52 for trunk/UEngine.pas
- Timestamp:
- Feb 3, 2018, 8:51:28 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 4 4 heaptrclog.trc 5 5 BigMetro.exe 6 *.dbg
-
- Property svn:ignore
-
trunk/UEngine.pas
r49 r52 1322 1322 function TEngine.GetExistStationShapes: TStationShapeSet; 1323 1323 var 1324 I: Integer;1325 1324 Station: TMapStation; 1326 1325 begin … … 1530 1529 procedure TEngine.ComputeShapeDistance; 1531 1530 var 1532 I: Integer;1533 1531 S: TStationShape; 1534 1532 Station: TMapStation; … … 1773 1771 I: Integer; 1774 1772 J: Integer; 1775 Link1, Link2: TPoint;1773 //Link1, Link2: TPoint; 1776 1774 NewPoint: TPoint; 1777 1775 MetroLine: TMetroLine; … … 1798 1796 with Track.Points[I] do 1799 1797 if Assigned(Track.Points[I].LinkDown) and Assigned(Track.Points[I].LinkUp) then begin 1798 { 1800 1799 Link1 := (Track.Points[I].PositionDesigned + Track.Points[I].LinkDown.Shift) - 1801 1800 (Track.Points[I - 1].PositionDesigned + Track.Points[I].LinkDown.Shift); 1802 1801 if (I + 1) < Track.Points.Count then 1803 1802 Link2 := (Track.Points[I + 1].PositionDesigned + Track.Points[I].LinkUp.Shift) - 1804 1803 (Track.Points[I].PositionDesigned + Track.Points[I].LinkUp.Shift) 1805 1804 else Link2 := Link1; 1806 1805 1807 {if ArcTanPoint(Link1) = ArcTanPoint(Link2) then begin1806 if ArcTanPoint(Link1) = ArcTanPoint(Link2) then begin 1808 1807 // Parallel lines 1809 1808 NewPoint := Track.Points[I].PositionDesigned + Track.Points[I].LinkDown.Shift;
Note:
See TracChangeset
for help on using the changeset viewer.