Skip to content

Commit 26e29ed

Browse files
committed
label long argument lists in TrainObjectItem constructors
1 parent 9abdace commit 26e29ed

File tree

1 file changed

+10
-10
lines changed
  • Source/Orts.Simulation/Simulation/Physics

1 file changed

+10
-10
lines changed

Source/Orts.Simulation/Simulation/Physics/Train.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14252,11 +14252,11 @@ public void UpdatePlayerTrainData(float maxDistanceM)
1425214252
}
1425314253
else if (signalObjectItem.ObjectType == ObjectItemInfo.ObjectItemType.Speedlimit && signalObjectItem.actual_speed > 0)
1425414254
{
14255-
thisItem = new TrainObjectItem(signalObjectItem.actual_speed,
14256-
signalObjectItem.speed_isWarning,
14257-
signalObjectItem.distance_to_train,
14258-
signalObjectItem.ObjectDetails,
14259-
(TrainObjectItem.SpeedItemType)(signalObjectItem.speed_noSpeedReductionOrIsTempSpeedReduction));
14255+
thisItem = new TrainObjectItem(thisSpeedMpS: signalObjectItem.actual_speed,
14256+
isWarning: signalObjectItem.speed_isWarning,
14257+
thisDistanceM: signalObjectItem.distance_to_train,
14258+
signalObject: signalObjectItem.ObjectDetails,
14259+
speedObjectType: (TrainObjectItem.SpeedItemType)signalObjectItem.speed_noSpeedReductionOrIsTempSpeedReduction);
1426014260
PlayerTrainSpeedposts[dir].Add(thisItem);
1426114261
}
1426214262
}
@@ -14336,11 +14336,11 @@ public void UpdatePlayerTrainData(float maxDistanceM)
1433614336
if (thisSpeedInfo != null && thisSpeedInfo.speed_reset == 1)
1433714337
validSpeed = progressiveMaxSpeedLimitMpS;
1433814338
else progressiveMaxSpeedLimitMpS = validSpeed;
14339-
thisItem = new TrainObjectItem(validSpeed,
14340-
thisSpeedInfo.speed_isWarning,
14341-
thisSpeeditem.SignalLocation + sectionDistanceToTrainM,
14342-
thisSpeedpost,
14343-
(TrainObjectItem.SpeedItemType)thisSpeedpost.SpeedPostType());
14339+
thisItem = new TrainObjectItem(thisSpeedMpS: validSpeed,
14340+
isWarning: thisSpeedInfo.speed_isWarning,
14341+
thisDistanceM: thisSpeeditem.SignalLocation + sectionDistanceToTrainM,
14342+
signalObject: thisSpeedpost,
14343+
speedObjectType: (TrainObjectItem.SpeedItemType)thisSpeedpost.SpeedPostType());
1434414344
PlayerTrainSpeedposts[dir].Add(thisItem);
1434514345
}
1434614346
}

0 commit comments

Comments
 (0)