Skip to content

Commit 9d86129

Browse files
committed
Correct bracket placement
1 parent a116284 commit 9d86129

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1086,7 +1086,7 @@ public void Update(float elapsedClockSeconds)
10861086
State = DieselEngineState.Stopped;
10871087

10881088
// fuel consumption will occur when engine is running above the starting rpm
1089-
if ((State == DieselEngineState.Stopped) || ((State == DieselEngineState.Stopping) && (RealRPM < StartingRPM)) || ((State == DieselEngineState.Starting) && (RealRPM < StartingRPM)))
1089+
if (State == DieselEngineState.Stopped || (State == DieselEngineState.Stopping && RealRPM < StartingRPM) || (State == DieselEngineState.Starting && RealRPM < StartingRPM))
10901090
{
10911091
ExhaustParticles = 0;
10921092
DieselFlowLps = 0;

0 commit comments

Comments
 (0)