We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98f1c45 commit eae6246Copy full SHA for eae6246
Source/Orts.Simulation/Simulation/RollingStocks/SubSystems/PowerSupplies/DieselEngine.cs
@@ -1014,7 +1014,12 @@ public void InitializeMoving()
1014
{
1015
RealRPM = IdleRPM;
1016
State = DieselEngineState.Running;
1017
-
+ if (ThrottleRPMTab != null)
1018
+ {
1019
+ DemandedRPM = ThrottleRPMTab[Locomotive.ThrottlePercent];
1020
+ DemandedRPM = MathHelper.Clamp(DemandedRPM, IdleRPM, MaxRPM); // Clamp throttle setting within bounds
1021
+ RealRPM = DemandedRPM;
1022
+ }
1023
GearBox?.InitializeMoving();
1024
}
1025
0 commit comments