File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Source/Orts.Simulation/Simulation/RollingStocks Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -5094,7 +5094,12 @@ public void OdometerToggleDirection()
50945094 if ( Train == null )
50955095 return ;
50965096
5097+ // change the up/down flag for the reset logic (above)
5098+ // change the forward/reverse flag for OdometerM calculation (see OdometerM get() function)
5099+ // change the reference point to match the up/down flag
50975100 OdometerCountingUp = ! OdometerCountingUp ;
5101+ OdometerCountingForwards = ! OdometerCountingForwards ;
5102+ OdometerResetPositionM = OdometerCountingUp ? OdometerResetPositionM - Train . Length : OdometerResetPositionM + Train . Length ;
50985103
50995104 Simulator . Confirmer . Confirm ( CabControl . Odometer , OdometerCountingUp ? CabSetting . Increase : CabSetting . Decrease ) ;
51005105 }
You can’t perform that action at this time.
0 commit comments