Skip to content

Commit 5bbc476

Browse files
committed
Clarify where the summing of Drive and Idle Axles comes from.
No code changed.
1 parent d3f00a1 commit 5bbc476

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Source/Contrib/ContentManager/Models/Car.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ public Car(Content content)
100100
// this is not always correct as TrainCar uses the WheelAxles array for the count; that is too complex to do here
101101
if (SubType.Equals("Steam") && NumDriveAxles >= (NumDriveAxles + NumIdleAxles)) { NumDriveAxles /= 2; }
102102

103+
// see TrainCar.UpdateTrainDerailmentRisk(), ~ line 1609
103104
NumAllAxles = NumDriveAxles + NumIdleAxles;
104105

105106
// see TrainCar.UpdateTrainDerailmentRisk()

Source/Contrib/ContentManager/Models/Consist.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ public Consist(Content content)
114114
// this is not always correct as TrainCar uses the WheelAxles array for the count; that is too complex to do here
115115
if (subType.Equals("Steam") && numDriveAxles >= (numDriveAxles + numIdleAxles)) { numDriveAxles /= 2; }
116116

117+
// see TrainCar.UpdateTrainDerailmentRisk(), ~ line 1609
117118
numAllAxles = numDriveAxles + numIdleAxles;
118119

119120
// exclude legacy EOT from total axle count

0 commit comments

Comments
 (0)