forked from mirror/OpenTTD
(svn r6246) -Feature: added the many times requested "send all vehicle to depot" button
it's located in the vehicle list screen and does the same as in the shared orders window (send all vehicles in list to a depot) it will still not inform the player if a vehicle failed to find a depot, so don't take for granted that all of them go
This commit is contained in:
@@ -1005,6 +1005,10 @@ int32 CmdSendShipToDepot(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
|
||||
const Depot *dep;
|
||||
const int32 return_value = HASBIT(p2, 1) ? 0 : CMD_ERROR;
|
||||
|
||||
if (HASBIT(p2, 1) && (p2 & VLW_FLAGS) == VLW_STANDARD) {
|
||||
return SendAllVehiclesToDepot(VEH_Ship, flags, HASBIT(p2, 0), _current_player);
|
||||
}
|
||||
|
||||
if (!IsValidVehicleID(p1)) return return_value;
|
||||
|
||||
v = GetVehicle(p1);
|
||||
|
Reference in New Issue
Block a user