Skip to content

Commit 03f48e2

Browse files
committed
Faster air vent if two angle cocks are open
1 parent b56195c commit 03f48e2

File tree

1 file changed

+9
-1
lines changed
  • Source/Orts.Simulation/Simulation/RollingStocks/SubSystems/Brakes/MSTS

1 file changed

+9
-1
lines changed

Source/Orts.Simulation/Simulation/RollingStocks/SubSystems/Brakes/MSTS/AirSinglePipe.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,15 @@ protected static void PropagateBrakeLinePressures(float elapsedClockSeconds, Tra
802802
}
803803
}
804804
// Empty the brake pipe if the brake hose is not connected and angle cocks are open
805-
if ((!car.BrakeSystem.FrontBrakeHoseConnected && car.BrakeSystem.AngleCockAOpen) || ((nextCar == null || !nextCar.BrakeSystem.FrontBrakeHoseConnected) && car.BrakeSystem.AngleCockBOpen))
805+
if (!car.BrakeSystem.FrontBrakeHoseConnected && car.BrakeSystem.AngleCockAOpen)
806+
{
807+
car.BrakeSystem.BrakeLine1PressurePSI = Math.Max(car.BrakeSystem.BrakeLine1PressurePSI * (1 - trainPipeTimeVariationS / brakePipeTimeFactorS), 0);
808+
if (car.BrakeSystem.TwoPipes)
809+
{
810+
car.BrakeSystem.BrakeLine2PressurePSI = Math.Max(car.BrakeSystem.BrakeLine2PressurePSI * (1 - trainPipeTimeVariationS / brakePipeTimeFactorS), 0);
811+
}
812+
}
813+
if ((nextCar == null || !nextCar.BrakeSystem.FrontBrakeHoseConnected) && car.BrakeSystem.AngleCockBOpen)
806814
{
807815
car.BrakeSystem.BrakeLine1PressurePSI = Math.Max(car.BrakeSystem.BrakeLine1PressurePSI * (1 - trainPipeTimeVariationS / brakePipeTimeFactorS), 0);
808816
if (car.BrakeSystem.TwoPipes)

0 commit comments

Comments
 (0)