Skip to content

Commit 6b79e53

Browse files
committed
Adjust code based upon feedback.
1 parent 4f42995 commit 6b79e53

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

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

-7
Original file line numberDiff line numberDiff line change
@@ -3505,14 +3505,7 @@ private void UpdateFX(float elapsedClockSeconds)
35053505

35063506
if (((Train.TrainType == Train.TRAINTYPE.PLAYER && !Train.Autopilot) || Train.TrainType == Train.TRAINTYPE.AI_PLAYERDRIVEN) && (Simulator.UseAdvancedAdhesion && !Simulator.Settings.SimpleControlPhysics))
35073507
{
3508-
if (SteamEngines[i].AttachedAxle.IsWheelSlip)
3509-
{
3510-
variable[i] = Math.Abs(SteamEngines[i].AttachedAxle.SlipSpeedMpS / SteamEngines[i].AttachedAxle.WheelRadiusM / MathHelper.Pi * 5);
3511-
}
3512-
else
3513-
{
35143508
variable[i] = Math.Abs((float)SteamEngines[i].AttachedAxle.AxleSpeedMpS / SteamEngines[i].AttachedAxle.WheelRadiusM / MathHelper.Pi * 5);
3515-
}
35163509
}
35173510
else
35183511
// Axle code is not executed if it is an AI train, on Autopilot, or Simple adhesion or simple physics is selected. Hence must use wheelspeed in these instances

0 commit comments

Comments
 (0)