Skip to content

Commit

Permalink
Remove clause overriding axle behaviour
Browse files Browse the repository at this point in the history
If the clause was trying to fix an specific issue of the axle model, the issue
must be identified and fixed at the Axle class
  • Loading branch information
cesarBLG committed Apr 28, 2023
1 parent 73b637f commit 745d101
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions Source/Orts.Simulation/Simulation/RollingStocks/MSTSLocomotive.cs
Expand Up @@ -2770,16 +2770,8 @@ public virtual void AdvancedAdhesion(float elapsedClockSeconds)
// This enables steam locomotives to have different speeds for driven and non-driven wheels.
if (EngineType == EngineTypes.Steam && SteamEngineType != MSTSSteamLocomotive.SteamEngineTypes.Geared)
{
if (AbsSpeedMpS <= 0.15 && !WheelSlip)
{
WheelSpeedSlipMpS = SpeedMpS;
WheelSpeedMpS = SpeedMpS;
}
else
{
WheelSpeedSlipMpS = LocomotiveAxles[0].AxleSpeedMpS;
WheelSpeedMpS = SpeedMpS;
}
WheelSpeedSlipMpS = LocomotiveAxles[0].AxleSpeedMpS;
WheelSpeedMpS = SpeedMpS;
}
else WheelSpeedMpS = LocomotiveAxles[0].AxleSpeedMpS;

Expand Down

0 comments on commit 745d101

Please sign in to comment.