Skip to content

Commit 6c47e01

Browse files
committed
Correct idle error
1 parent 95889a3 commit 6c47e01

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Source/Orts.Simulation/Simulation/RollingStocks/MSTSSteamLocomotive.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2240,7 +2240,15 @@ public override void Update(float elapsedClockSeconds)
22402240

22412241
if (SteamEngines[i].AuxiliarySteamEngineType == SteamEngine.AuxiliarySteamEngineTypes.Booster)
22422242
{
2243-
tractiveforcethrottle = enginethrottle;
2243+
if (SteamBoosterRunMode)
2244+
{
2245+
tractiveforcethrottle = enginethrottle;
2246+
}
2247+
else if (SteamBoosterIdleMode || !SteamBoosterAirOpen)
2248+
{
2249+
// Booster produces no output force
2250+
tractiveforcethrottle = 0;
2251+
}
22442252
}
22452253
else
22462254
{

0 commit comments

Comments
 (0)