File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Source/Orts.Simulation/Simulation/RollingStocks/SubSystems Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1198,7 +1198,7 @@ public void SpeedSelectorIncreaseStep()
1198
1198
if ( time >= selectedSpeedLeverHoldTime && time < selectedSpeedLeverHoldTime + SpeedSelectorStepTimeSeconds ) return ;
1199
1199
selectedSpeedLeverHoldTime = time ;
1200
1200
1201
- if ( SpeedSelectorIsDiscrete )
1201
+ if ( SpeedSelectorController . NotchCount ( ) > 0 )
1202
1202
{
1203
1203
SpeedSelectorController . StartIncrease ( ) ;
1204
1204
SpeedSelectorController . StopIncrease ( ) ;
@@ -1222,7 +1222,7 @@ public void SpeedSelectorDecreaseStep()
1222
1222
selectedSpeedLeverHoldTime = time ;
1223
1223
1224
1224
float speed = ControllerValueToSelectedSpeedMpS ( SpeedSelectorController . CurrentValue ) - SpeedRegulatorNominalSpeedStepMpS ;
1225
- if ( SpeedSelectorIsDiscrete )
1225
+ if ( SpeedSelectorController . NotchCount ( ) > 0 )
1226
1226
{
1227
1227
SpeedSelectorController . StartDecrease ( ) ;
1228
1228
SpeedSelectorController . StopDecrease ( ) ;
You can’t perform that action at this time.
0 commit comments