Skip to content

Commit 782e611

Browse files
authored
Merge pull request #866 from SteelFill/0-axle-articulation-fix
Fix Articulation For 0-Axle Train Cars
2 parents d7b38a5 + c15333e commit 782e611

File tree

1 file changed

+5
-6
lines changed
  • Source/Orts.Simulation/Simulation/RollingStocks

1 file changed

+5
-6
lines changed

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2735,12 +2735,11 @@ public void SetUpWheels()
27352735
var carIndex = Train.Cars.IndexOf(this);
27362736
//Certain locomotives are testing as articulated wagons for some reason.
27372737
if (WagonType != WagonTypes.Engine)
2738-
if (WheelAxles.Count >= 2)
2739-
if (articulatedFront || articulatedRear)
2740-
{
2741-
WheelAxlesLoaded = true;
2742-
SetUpWheelsArticulation(carIndex);
2743-
}
2738+
if (WheelAxles.Count != 1 && (articulatedFront || articulatedRear))
2739+
{
2740+
WheelAxlesLoaded = true;
2741+
SetUpWheelsArticulation(carIndex);
2742+
}
27442743
} // end SetUpWheels()
27452744

27462745
protected void SetUpWheelsArticulation(int carIndex)

0 commit comments

Comments
 (0)