Changeset 34
- Timestamp:
- Apr 19, 2015, 1:06:35 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UEngine.pas
r33 r34 1525 1525 TargetStationIndex: Integer; 1526 1526 PosChange: Double; 1527 TP: TTrackPoint; 1527 1528 begin 1528 1529 // Move trains … … 1530 1531 with TMetroTrain(Trains[I]) do begin 1531 1532 if not Assigned(TargetStation) and Assigned(BaseTrackPoint) then begin 1532 Direction := 1; 1533 TargetStation := BaseTrackPoint.GetUp.LineStation; 1533 if (Direction <> 1) and (Direction <> -1) then Direction := 1 1534 else Direction := -Direction; 1535 TP := BaseTrackPoint.GetUp; 1536 if Assigned(TP) then TargetStation := TP.LineStation 1537 else begin 1538 TP := BaseTrackPoint.GetDown; 1539 if Assigned(TP) then TargetStation := TP.LineStation; 1540 end; 1534 1541 end; 1535 1542 if Assigned(Line) then begin
Note:
See TracChangeset
for help on using the changeset viewer.