Skip to content

Commit 3d90668

Browse files
committed
Handle diesel engine hot startup via QuickPowerOn mechanism
1 parent c577bbb commit 3d90668

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

Source/Orts.Simulation/Simulation/RollingStocks/MSTSDieselLocomotive.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ public override void Initialize()
506506
Trace.TraceInformation("===================================================================================================================\n\n");
507507
}
508508
}
509-
509+
if (!Simulator.Settings.NoDieselEngineStart) SetPower(true);
510510
}
511511

512512
/// <summary>

Source/Orts.Simulation/Simulation/RollingStocks/SubSystems/PowerSupplies/DieselEngine.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -997,12 +997,6 @@ public void Copy(DieselEngine other)
997997

998998
public void Initialize()
999999
{
1000-
if (!Simulator.Settings.NoDieselEngineStart)
1001-
{
1002-
RealRPM = IdleRPM;
1003-
State = DieselEngineState.Running;
1004-
}
1005-
10061000
RPMRange = MaxRPM - IdleRPM;
10071001
MagnitudeRange = MaxMagnitude - InitialMagnitude;
10081002
ExhaustRange = MaxExhaust - InitialExhaust;

0 commit comments

Comments
 (0)