Skip to content

Commit 1daa6a7

Browse files
authored
Merge pull request #832 from cesarBLG/cc-train-priority
Fix Cruise Control together with Train Brake
2 parents 51d4cd9 + bb8941f commit 1daa6a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Orts.Simulation/Simulation/RollingStocks/SubSystems/CruiseControl.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ public void Update(float elapsedClockSeconds)
506506
trainBrakePercent = 0;
507507
}
508508
else if ((Locomotive.TrainBrakeController.MaxPressurePSI - Locomotive.BrakeSystem.BrakeLine1PressurePSI > 1 ||
509-
Locomotive.Train.BrakeLine4 > 0 && TrainBrakePriority) && !CCIsUsingTrainBrake)
509+
Locomotive.Train.BrakeLine4 > 0) && TrainBrakePriority && !CCIsUsingTrainBrake)
510510
{
511511
reducingForce = true;
512512
timeFromEngineMoved = 0;

0 commit comments

Comments
 (0)