Skip to content

Commit 0f890b0

Browse files
committed
Add missing change
1 parent 0cbbc61 commit 0f890b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Orts.Simulation/Simulation/RollingStocks/SubSystems/Controllers/MSTSBrakeController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ public override void UpdatePressure(ref float pressureBar, float elapsedClockSec
197197
x = MaxPressureBar() - MinReductionBar() * (1 - x) - FullServReductionBar() * x;
198198
DecreasePressure(ref pressureBar, x, ApplyRateBarpS(), elapsedClockSeconds);
199199
if (ForceControllerReleaseGraduated || notch.Type == ControllerState.EPApply)
200-
IncreasePressure(ref pressureBar, x, ReleaseRateBarpS(), elapsedClockSeconds);
200+
IncreasePressure(ref pressureBar, Math.Min(x, MainReservoirPressureBar()), ReleaseRateBarpS(), elapsedClockSeconds);
201201
}
202202
break;
203203
case ControllerState.GSelfLapH:

0 commit comments

Comments
 (0)