@@ -14252,11 +14252,11 @@ public void UpdatePlayerTrainData(float maxDistanceM)
14252
14252
}
14253
14253
else if (signalObjectItem.ObjectType == ObjectItemInfo.ObjectItemType.Speedlimit && signalObjectItem.actual_speed > 0)
14254
14254
{
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);
14260
14260
PlayerTrainSpeedposts[dir].Add(thisItem);
14261
14261
}
14262
14262
}
@@ -14336,11 +14336,11 @@ public void UpdatePlayerTrainData(float maxDistanceM)
14336
14336
if (thisSpeedInfo != null && thisSpeedInfo.speed_reset == 1)
14337
14337
validSpeed = progressiveMaxSpeedLimitMpS;
14338
14338
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());
14344
14344
PlayerTrainSpeedposts[dir].Add(thisItem);
14345
14345
}
14346
14346
}
0 commit comments