- Timestamp:
- Oct 4, 2022, 4:31:22 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UEngine.pas
r107 r108 187 187 CarriageCountVisible: Boolean; 188 188 TerminalCountVisible: Boolean; 189 GrabbedTrainLastTrackPosition: TTrackPosition;189 LastGrabbedTrainTrackPosition: TTrackPosition; 190 190 GrabbedTrainDirection: Integer; 191 LastGrabbedTrain: TMetroTrain; 191 192 function GetServedDaysCount: Integer; 192 193 procedure ResizeView(Force: Boolean); … … 2742 2743 Angle := Vector.GetAngle; 2743 2744 2744 if TrackPosition.GetTrackPosition > 2745 GrabbedTrainLastTrackPosition.GetTrackPosition then 2746 GrabbedTrainDirection := 1 2747 else 2748 if TrackPosition.GetTrackPosition < 2749 GrabbedTrainLastTrackPosition.GetTrackPosition then 2750 GrabbedTrainDirection := -1; 2751 2752 GrabbedTrainLastTrackPosition := TrackPosition; 2745 if Assigned(LastGrabbedTrain) then begin 2746 if TrackPosition.GetTrackPosition > 2747 LastGrabbedTrainTrackPosition.GetTrackPosition then 2748 GrabbedTrainDirection := 1 2749 else 2750 if TrackPosition.GetTrackPosition < 2751 LastGrabbedTrainTrackPosition.GetTrackPosition then 2752 GrabbedTrainDirection := -1; 2753 end else GrabbedTrainDirection := 1; 2754 2755 LastGrabbedTrain := SelectedTrain; 2756 LastGrabbedTrainTrackPosition := TrackPosition; 2753 2757 end; 2754 2758 FocusedTrack.Free; … … 3003 3007 end; 3004 3008 FocusedTrack.Free; 3009 3010 LastGrabbedTrain := nil; 3005 3011 end; 3006 3012
Note:
See TracChangeset
for help on using the changeset viewer.