Skip to content

Commit 3aae640

Browse files
committed
Fixed dynamic brake being applied during standstill when dynamic brake blending is enabled
(which blocks throttle during hill start) https://bugs.launchpad.net/or/+bug/1945886
1 parent 41d3f0c commit 3aae640

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Orts.Simulation/Simulation/RollingStocks/MSTSLocomotive.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1585,7 +1585,7 @@ protected void CorrectBrakingParams()
15851585
/// </summary>
15861586
public void DynamicBrakeBlending(float elapsedClockSeconds)
15871587
{
1588-
if (airPipeSystem != null && ((airPipeSystem is EPBrakeSystem && Train.BrakeLine4 > 0f) || airPipeSystem.BrakeLine1PressurePSI < TrainBrakeController.MaxPressurePSI - 1f)
1588+
if (SpeedMpS > DynamicBrakeSpeed1MpS && airPipeSystem != null && ((airPipeSystem is EPBrakeSystem && Train.BrakeLine4 > 0f) || airPipeSystem.BrakeLine1PressurePSI < TrainBrakeController.MaxPressurePSI - 1f)
15891589
&& ThrottleController.CurrentValue == 0f && !(DynamicBrakeController != null && DynamicBrakeBlendingOverride && DynamicBrakeController.CurrentValue > 0f)
15901590
/* && (!DynamicBrakeBlendingLeverOverride && DynamicBrakeController != null && DynamicBrakeIntervention < DynamicBrakeController.CurrentValue)*/)
15911591
{

0 commit comments

Comments
 (0)