Skip to content

Commit 4148bea

Browse files
authored
1 parent eb9c601 commit 4148bea

File tree

1 file changed

+5
-0
lines changed
  • Source/Orts.Simulation/Simulation/RollingStocks/SubSystems/PowerSupplies

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -997,6 +997,11 @@ 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+
}
10001005
RPMRange = MaxRPM - IdleRPM;
10011006
MagnitudeRange = MaxMagnitude - InitialMagnitude;
10021007
ExhaustRange = MaxExhaust - InitialExhaust;

0 commit comments

Comments
 (0)