From 744840c3daed0828e4fc8e3fca843a29bf6df7d8 Mon Sep 17 00:00:00 2001 From: bjarni Date: Wed, 30 Aug 2006 21:39:01 +0000 Subject: (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 --- aircraft_cmd.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'aircraft_cmd.c') diff --git a/aircraft_cmd.c b/aircraft_cmd.c index 8fa4240a0..3b9e6c333 100644 --- a/aircraft_cmd.c +++ b/aircraft_cmd.c @@ -501,6 +501,10 @@ int32 CmdSendAircraftToHangar(TileIndex tile, uint32 flags, uint32 p1, uint32 p2 Vehicle *v; const int32 return_value = HASBIT(p2, 1) ? 0 : CMD_ERROR; + if (HASBIT(p2, 1) && (p2 & VLW_FLAGS) == VLW_STANDARD) { + return SendAllVehiclesToDepot(VEH_Aircraft, flags, HASBIT(p2, 0), _current_player); + } + if (!IsValidVehicleID(p1)) return return_value; v = GetVehicle(p1); -- cgit v1.2.3-70-g09d2