Skip to content

Commit 37f56ce

Browse files
committed
Automatic merge of T1.6-145-g7915033ac and 11 pull requests
- Pull request #1082 at 8538170: Allow variable water level in glass gauge - Pull request #1156 at f46d5f2: Fix incorrectly disabled options in train operations window - Pull request #570 at 1b6b22e: glTF 2.0 support with PBR lighting - Pull request #1091 at 492795a: Automatic speed control - Pull request #1122 at 73c47b4: Wagon Size and Centering Controls - Pull request #1124 at e241a0d: Built-in PBL2 brake controller - Pull request #1157 at 39cd994: Dynamic brake authorization by TCS - Pull request #1167 at 115325f: Fix: RunActivity slow to terminate because of long sleep in Host Process - Pull request #1168 at 6e2942f: Fix exception when exiting with MapForm or SoundDebugForm open. - Pull request #1169 at 6cf8c3e: Better Handling of Wagons with Invalid Bogie Configuration - Pull request #1171 at 8fd2066: no internet connection is available, not possible to open the Menu Content Form
13 parents 7111749 + 7915033 + 8538170 + f46d5f2 + 1b6b22e + 492795a + 73c47b4 + e241a0d + 39cd994 + 115325f + 6e2942f + 6cf8c3e + 8fd2066 commit 37f56ce

File tree

1 file changed

+3
-3
lines changed
  • Source/Orts.Simulation/Simulation/RollingStocks

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2826,9 +2826,9 @@ public void SetUpWheels()
28262826
// No axles but we have bogies.
28272827
if (WheelAxles.Count == 0 && Parts.Count > 1)
28282828
{
2829-
// Fake the axles by pretending each has 1 axle.
2830-
foreach (var part in Parts)
2831-
WheelAxles.Add(new WheelAxle(part.OffsetM, part.iMatrix, 0));
2829+
// Fake the axles by pretending each bogie has 1 axle.
2830+
for (int i = 1; i < Parts.Count; i++)
2831+
WheelAxles.Add(new WheelAxle(Parts[i].OffsetM, i, Parts[i].iMatrix));
28322832
Trace.TraceInformation("Wheel axle data faked based on {1} bogies for {0}", WagFilePath, Parts.Count - 1);
28332833
}
28342834
bool articFront = !WheelAxles.Any(a => a.OffsetM.Z < 0);

0 commit comments

Comments
 (0)