Changeset 52 for trunk/UEngine.pas


Ignore:
Timestamp:
Feb 3, 2018, 8:51:28 PM (6 years ago)
Author:
chronos
Message:
  • Modified: Use Build mode in lib subdirectory.
  • Added: 1.0.1 Windows installer.
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        44heaptrclog.trc
        55BigMetro.exe
         6*.dbg
  • trunk/UEngine.pas

    r49 r52  
    13221322function TEngine.GetExistStationShapes: TStationShapeSet;
    13231323var
    1324   I: Integer;
    13251324  Station: TMapStation;
    13261325begin
     
    15301529procedure TEngine.ComputeShapeDistance;
    15311530var
    1532   I: Integer;
    15331531  S: TStationShape;
    15341532  Station: TMapStation;
     
    17731771  I: Integer;
    17741772  J: Integer;
    1775   Link1, Link2: TPoint;
     1773  //Link1, Link2: TPoint;
    17761774  NewPoint: TPoint;
    17771775  MetroLine: TMetroLine;
     
    17981796    with Track.Points[I] do
    17991797    if Assigned(Track.Points[I].LinkDown) and Assigned(Track.Points[I].LinkUp) then begin
     1798      {
    18001799      Link1 := (Track.Points[I].PositionDesigned + Track.Points[I].LinkDown.Shift) -
    18011800        (Track.Points[I - 1].PositionDesigned + Track.Points[I].LinkDown.Shift);
    18021801      if (I + 1) < Track.Points.Count then
    1803         Link2 := (Track.Points[I + 1].PositionDesigned + Track.Points[I].LinkUp.Shift) -
     1802      Link2 := (Track.Points[I + 1].PositionDesigned + Track.Points[I].LinkUp.Shift) -
    18041803          (Track.Points[I].PositionDesigned + Track.Points[I].LinkUp.Shift)
    18051804        else Link2 := Link1;
    18061805
    1807 {      if ArcTanPoint(Link1) = ArcTanPoint(Link2) then begin
     1806      if ArcTanPoint(Link1) = ArcTanPoint(Link2) then begin
    18081807        // Parallel lines
    18091808        NewPoint := Track.Points[I].PositionDesigned + Track.Points[I].LinkDown.Shift;
Note: See TracChangeset for help on using the changeset viewer.