Skip to content

Commit f40920a

Browse files
committed
Do not wheelslip if steam locomotive and simple adhesion
1 parent dc485c5 commit f40920a

File tree

1 file changed

+6
-1
lines changed
  • Source/Orts.Simulation/Simulation/RollingStocks/SubSystems/PowerTransmissions

1 file changed

+6
-1
lines changed

Source/Orts.Simulation/Simulation/RollingStocks/SubSystems/PowerTransmissions/Axle.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1435,7 +1435,12 @@ public void UpdateSimpleAdhesion(float elapsedClockSeconds)
14351435

14361436
float adhesionForceN = AxleWeightN * AdhesionLimit;
14371437
SlipPercent = Math.Abs(axleOutForceN) / adhesionForceN * 100;
1438-
if (SlipPercent > 100)
1438+
if (Car is MSTSSteamLocomotive steam && !steam.AdvancedAdhesionModel)
1439+
{
1440+
// Do not allow wheelslip on steam locomotives if simple adhesion is selected
1441+
SlipPercent = 0;
1442+
}
1443+
else if (SlipPercent > 100)
14391444
{
14401445
axleOutForceN = MathHelper.Clamp(axleOutForceN, -adhesionForceN, adhesionForceN);
14411446
// Simple adhesion, simple wheelslip conditions

0 commit comments

Comments
 (0)