Skip to content

Commit 52eab21

Browse files
committed
Fix indentation
1 parent b5051fc commit 52eab21

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

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

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -652,19 +652,19 @@ protected override void UpdateTractiveForce(float elapsedClockSeconds, float t,
652652
}
653653

654654
// Calculate fuel consumption will occur unless diesel engine is stopped
655-
DieselFlowLps = DieselEngines.DieselFlowLps;
656-
partialFuelConsumption += DieselEngines.DieselFlowLps * elapsedClockSeconds;
657-
if (partialFuelConsumption >= 0.1)
658-
{
659-
DieselLevelL -= partialFuelConsumption;
660-
partialFuelConsumption = 0;
661-
}
662-
// stall engine if fuel runs out
663-
if (DieselLevelL <= 0.0f)
664-
{
665-
SignalEvent(Event.EnginePowerOff);
666-
DieselEngines.HandleEvent(PowerSupplyEvent.StopEngine);
667-
}
655+
DieselFlowLps = DieselEngines.DieselFlowLps;
656+
partialFuelConsumption += DieselEngines.DieselFlowLps * elapsedClockSeconds;
657+
if (partialFuelConsumption >= 0.1)
658+
{
659+
DieselLevelL -= partialFuelConsumption;
660+
partialFuelConsumption = 0;
661+
}
662+
// stall engine if fuel runs out
663+
if (DieselLevelL <= 0.0f)
664+
{
665+
SignalEvent(Event.EnginePowerOff);
666+
DieselEngines.HandleEvent(PowerSupplyEvent.StopEngine);
667+
}
668668
}
669669

670670
/// <summary>

0 commit comments

Comments
 (0)