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()
5094
5094
if ( Train == null )
5095
5095
return ;
5096
5096
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
5097
5100
OdometerCountingUp = ! OdometerCountingUp ;
5101
+ OdometerCountingForwards = ! OdometerCountingForwards ;
5102
+ OdometerResetPositionM = OdometerCountingUp ? OdometerResetPositionM - Train . Length : OdometerResetPositionM + Train . Length ;
5098
5103
5099
5104
Simulator . Confirmer . Confirm ( CabControl . Odometer , OdometerCountingUp ? CabSetting . Increase : CabSetting . Decrease ) ;
5100
5105
}
You can’t perform that action at this time.
0 commit comments