Skip to content

Commit b87e473

Browse files
committed
Fix issue with geared stam locomotive not operating correctly
1 parent 00005ce commit b87e473

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5008,7 +5008,7 @@ protected override void UpdateTractiveForce(float elapsedClockSeconds, float t,
50085008
// Typically tangential force will be greater at starting then when the locomotive is at speed, as interia and reduce steam pressure will decrease the value.
50095009
// By default this model uses information based upon a "NYC 4-4-2 locomotive", for smaller locomotives this data is changed in the OR initialisation phase.
50105010

5011-
if (Simulator.UseAdvancedAdhesion && !Simulator.Settings.SimpleControlPhysics && IsPlayerTrain && this.Train.TrainType != Train.TRAINTYPE.AI_PLAYERHOSTING)
5011+
if (Simulator.UseAdvancedAdhesion && !Simulator.Settings.SimpleControlPhysics && IsPlayerTrain && this.Train.TrainType != Train.TRAINTYPE.AI_PLAYERHOSTING && SteamEngineType != SteamEngineTypes.Geared)
50125012
// only set advanced wheel slip when advanced adhesion, and simplecontrols/physics is not set and is in the the player train, AI locomotive will not work to this model.
50135013
// Don't use slip model when train is in auto pilot
50145014
{

Source/Orts.Simulation/Simulation/RollingStocks/TrainCar.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ public Direction Direction
630630
protected float RouteSpeedMpS; // Max Route Speed Limit
631631
protected const float GravitationalAccelerationMpS2 = 9.80665f; // Acceleration due to gravity 9.80665 m/s2
632632
protected int WagonNumAxles; // Number of axles on a wagon
633-
protected float MSTSWagonNumWheels; // Number of axless on a wagon - used to read MSTS value as default
633+
protected float MSTSWagonNumWheels; // Number of axles on a wagon - used to read MSTS value as default
634634
protected int LocoNumDrvAxles; // Number of drive axles on locomotive
635635
protected float MSTSLocoNumDrvWheels; // Number of drive axles on locomotive - used to read MSTS value as default
636636
public float DriverWheelRadiusM = Me.FromIn(30.0f); // Drive wheel radius of locomotive wheels - Wheel radius of loco drive wheels can be anywhere from about 10" to 40".

0 commit comments

Comments
 (0)