File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Source/Orts.Simulation/Simulation/RollingStocks Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -571,7 +571,7 @@ public float TenderCoalMassKG // Decreased by firing and increased
571571 float DisplayCriticalSpeedTractiveEffortLbf ; // Display power value @ speed of piston
572572 float absStartTractiveEffortN = 0.0f ; // Record starting tractive effort
573573 float TractiveEffortLbsF ; // Current sim calculated tractive effort
574- const float TractiveEffortFactor = 0.85f ; // factor for calculating Theoretical Tractive Effort for non-geared locomotives
574+ float TractiveEffortFactor = 0.85f ; // factor for calculating Theoretical Tractive Effort for non-geared locomotives
575575 float GearedTractiveEffortFactor = 0.7f ; // factor for calculating Theoretical Tractive Effort for geared locomotives
576576 float NeutralGearedDavisAN ; // Davis A value adjusted for neutral gearing
577577 const float DavisMechanicalResistanceFactor = 20.0f ;
@@ -1254,6 +1254,13 @@ public override void Initialize()
12541254
12551255 // ****************** Test Locomotive and Gearing type ***********************
12561256
1257+ // if the maximum cutoff for the locomotive is less then the default value, then decrease it so that tractive effort is not excessive.
1258+ // At some future stage it may be worthwhile to add an extra parameter to the ENG file to allow user setting.
1259+ if ( CutoffController . MaximumValue < TractiveEffortFactor )
1260+ {
1261+ TractiveEffortFactor = CutoffController . MaximumValue ;
1262+ }
1263+
12571264 if ( SteamEngineType == SteamEngineTypes . Compound )
12581265 {
12591266 // Initialise Compound locomotive
You can’t perform that action at this time.
0 commit comments