Skip to content

Commit 7eebedc

Browse files
committed
Fix for dynamic brake indicators not working when they should on locomotives with cruise control
1 parent 4fd63a3 commit 7eebedc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Source/RunActivity/Viewer3D/RollingStock/MSTSLocomotiveViewer.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2147,10 +2147,8 @@ public virtual int GetDrawIndex()
21472147
{
21482148
if (Locomotive.CruiseControl != null)
21492149
{
2150-
if ((Locomotive.CruiseControl.SpeedRegMode == Simulation.RollingStocks.SubSystems.CruiseControl.SpeedRegulatorMode.Auto && !Locomotive.CruiseControl.DynamicBrakePriority) || Locomotive.DynamicBrakeIntervention > 0)
2151-
{
2150+
if (Locomotive.CruiseControl.SpeedRegMode == Simulation.RollingStocks.SubSystems.CruiseControl.SpeedRegulatorMode.Auto && !Locomotive.CruiseControl.DynamicBrakePriority)
21522151
index = 0;
2153-
}
21542152
else
21552153
index = PercentToIndex(dynBrakePercent);
21562154
}

0 commit comments

Comments
 (0)