Skip to content

Commit e0e6817

Browse files
authored
Merge pull request #1137 from cesarBLG/minimal-reduction-fix
Apply brakes at startup on minimal reduction
2 parents b0a1c15 + c2c9e2a commit e0e6817

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,11 @@ public override void UpdatePressure(ref float pressureBar, float elapsedClockSec
105105
{
106106
PreviousNotchPosition = NotchController.GetCurrentNotch();
107107
BrakeControllerInitialised = true;
108+
if (PreviousNotchPosition != null)
109+
{
110+
var type = PreviousNotchPosition.Type;
111+
if (type == ControllerState.Lap || type == ControllerState.MinimalReduction) EnforceMinimalReduction = true;
112+
}
108113
}
109114
if (notch == null)
110115
{

0 commit comments

Comments
 (0)