We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0dc3392 + 6a66eb2 commit e549403Copy full SHA for e549403
Source/Orts.Simulation/Simulation/RollingStocks/MSTSLocomotive.cs
@@ -4553,11 +4553,11 @@ public virtual float GetDataOf(CabViewControl cvc)
4553
MaxCurrentA = (float)cvc.MaxValue;
4554
if (DynamicBrakeMaxCurrentA == 0)
4555
DynamicBrakeMaxCurrentA = (float)cvc.MinValue;
4556
- if (ThrottlePercent > 0)
+ if (ThrottlePercent >= 0 && DynamicBrakePercent == -1)
4557
{
4558
data = (data / MaxForceN) * MaxCurrentA;
4559
}
4560
- if (DynamicBrakePercent > 0)
+ if (ThrottlePercent == 0 && DynamicBrakePercent >= 0)
4561
4562
data = (data / MaxDynamicBrakeForceN) * DynamicBrakeMaxCurrentA;
4563
0 commit comments