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 @@ -511,7 +511,7 @@ public void Initialize()
511
511
else if ( MaxForceSelectorController == null )
512
512
{
513
513
var notches = new List < MSTSNotch > ( ) ;
514
- if ( MaxForceSelectorIsDiscrete )
514
+ if ( MaxForceSelectorIsDiscrete && SpeedRegulatorMaxForceSteps > 0 )
515
515
{
516
516
float numNotches = SpeedRegulatorMaxForceSteps ;
517
517
for ( int i = DisableZeroForceStep ? 1 : 0 ; i <= numNotches ; i ++ )
@@ -538,7 +538,7 @@ public void Initialize()
538
538
else if ( SpeedSelectorController == null )
539
539
{
540
540
var notches = new List < MSTSNotch > ( ) ;
541
- if ( SpeedSelectorIsDiscrete )
541
+ if ( SpeedSelectorIsDiscrete && SpeedRegulatorNominalSpeedStepMpS > 0 )
542
542
{
543
543
if ( ! DisableZeroSelectedSpeedStep ) notches . Add ( new MSTSNotch ( 0 , false , 0 ) ) ;
544
544
if ( MinimumSpeedForCCEffectMpS > 0 ) notches . Add ( new MSTSNotch ( float . Epsilon , false , 0 ) ) ;
You can’t perform that action at this time.
0 commit comments