Skip to content

Commit a6cbc52

Browse files
committed
Allowing train cars with 0 axles to become articulated
1 parent fc86323 commit a6cbc52

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
@@ -2718,12 +2718,11 @@ public void SetUpWheels()
27182718
var carIndex = Train.Cars.IndexOf(this);
27192719
//Certain locomotives are testing as articulated wagons for some reason.
27202720
if (WagonType != WagonTypes.Engine)
2721-
if (WheelAxles.Count >= 2)
2722-
if (articulatedFront || articulatedRear)
2723-
{
2724-
WheelAxlesLoaded = true;
2725-
SetUpWheelsArticulation(carIndex);
2726-
}
2721+
if (articulatedFront || articulatedRear)
2722+
{
2723+
WheelAxlesLoaded = true;
2724+
SetUpWheelsArticulation(carIndex);
2725+
}
27272726
} // end SetUpWheels()
27282727

27292728
protected void SetUpWheelsArticulation(int carIndex)

0 commit comments

Comments
 (0)