Initial implementation of tracerestrict speed restriction feature
This commit is contained in:
@@ -385,6 +385,7 @@ CommandCost CopyHeadSpecificThings(Vehicle *old_head, Vehicle *new_head, DoComma
|
||||
ChangeVehicleNews(old_head->index, new_head->index);
|
||||
|
||||
if (old_head->type == VEH_TRAIN) {
|
||||
Train::From(new_head)->speed_restriction = Train::From(old_head)->speed_restriction;
|
||||
/* Transfer any acquired trace restrict slots to the new vehicle */
|
||||
if (HasBit(Train::From(old_head)->flags, VRF_HAVE_SLOT)) {
|
||||
TraceRestrictTransferVehicleOccupantInAllSlots(old_head->index, new_head->index);
|
||||
|
Reference in New Issue
Block a user