Skip to content

Commit b5051fc

Browse files
committed
Remove reliance on MainPowerSupply for fuel supply
1 parent 9d86129 commit b5051fc

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

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

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

654654
// Calculate fuel consumption will occur unless diesel engine is stopped
655-
if (LocomotivePowerSupply.MainPowerSupplyOn)
656-
{
657655
DieselFlowLps = DieselEngines.DieselFlowLps;
658656
partialFuelConsumption += DieselEngines.DieselFlowLps * elapsedClockSeconds;
659657
if (partialFuelConsumption >= 0.1)
@@ -667,7 +665,6 @@ protected override void UpdateTractiveForce(float elapsedClockSeconds, float t,
667665
SignalEvent(Event.EnginePowerOff);
668666
DieselEngines.HandleEvent(PowerSupplyEvent.StopEngine);
669667
}
670-
}
671668
}
672669

673670
/// <summary>

0 commit comments

Comments
 (0)