forked from mirror/OpenTTD
(svn r24998) -Fix [FS#5137]: Set vehicle's service interval is percent flag appropriately on creation (peter1138)
This commit is contained in:
@@ -843,6 +843,8 @@ CommandCost CmdCloneVehicle(TileIndex tile, DoCommandFlag flags, uint32 p1, uint
|
||||
/* this is a front engine or not a train. */
|
||||
w_front = w;
|
||||
w->service_interval = v->service_interval;
|
||||
w->SetServiceIntervalIsCustom(v->ServiceIntervalIsCustom());
|
||||
w->SetServiceIntervalIsPercent(v->ServiceIntervalIsPercent());
|
||||
}
|
||||
w_rear = w; // trains needs to know the last car in the train, so they can add more in next loop
|
||||
}
|
||||
|
Reference in New Issue
Block a user