|
|
@ -528,6 +528,7 @@ CommandCost CmdRefitVehicle(TileIndex tile, DoCommandFlag flags, uint32 p1, uint
|
|
|
|
uint8 num_vehicles = GB(p2, 16, 8);
|
|
|
|
uint8 num_vehicles = GB(p2, 16, 8);
|
|
|
|
|
|
|
|
|
|
|
|
CommandCost cost = RefitVehicle(v, only_this, num_vehicles, new_cid, new_subtype, flags, auto_refit);
|
|
|
|
CommandCost cost = RefitVehicle(v, only_this, num_vehicles, new_cid, new_subtype, flags, auto_refit);
|
|
|
|
|
|
|
|
if (is_virtual_train) cost.MultiplyCost(0);
|
|
|
|
|
|
|
|
|
|
|
|
if (flags & DC_EXEC) {
|
|
|
|
if (flags & DC_EXEC) {
|
|
|
|
/* Update the cached variables */
|
|
|
|
/* Update the cached variables */
|
|
|
|