Skip to content

Commit 956a8ec

Browse files
committed
Turn off steam stoker steam usage values when not coal fired.
1 parent e1d8f1f commit 956a8ec

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Source/Orts.Simulation/Simulation/RollingStocks/MSTSSteamLocomotive.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3887,6 +3887,8 @@ private void UpdateFirebox(float elapsedClockSeconds, float absSpeedMpS)
38873887
oilburnrate = MaxFiringRateKGpS; // burning rate can never be more then the max firing rate
38883888
}
38893889

3890+
// OilBurnRateSmoothKGpS.ForceSmoothValue(oilburnrate);
3891+
38903892
OilBurnRateSmoothKGpS.Update(elapsedClockSeconds, oilburnrate);
38913893
FuelBurnRateSmoothedKGpS = OilBurnRateSmoothKGpS.SmoothedValue;
38923894
}
@@ -6801,7 +6803,7 @@ private void UpdateAuxiliaries(float elapsedClockSeconds, float absSpeedMpS)
68016803
GeneratorSteamUsageLBpS = 0.0f; // No generator fitted to locomotive
68026804
}
68036805

6804-
if (StokerIsMechanical)
6806+
if (StokerIsMechanical && SteamLocomotiveFuelType == SteamLocomotiveFuelTypes.Coal)
68056807
{
68066808
StokerSteamUsageLBpS = pS.FrompH(MaxBoilerOutputLBpH) * (StokerMinUsage + (StokerMaxUsage - StokerMinUsage) * FuelFeedRateKGpS / MaxFiringRateKGpS); // Caluculate current steam usage based on fuel feed rates
68076809
BoilerMassLB -= elapsedClockSeconds * StokerSteamUsageLBpS; // Reduce boiler mass to reflect steam usage by mechanical stoker

0 commit comments

Comments
 (0)