Mercurial > hg > openttd
diff train_cmd.c @ 4463:328c9fe06255 draft
(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
author | bjarni <bjarni@openttd.org> |
---|---|
date | Wed, 30 Aug 2006 21:39:01 +0000 |
parents | b8ae7a140a40 |
children | f520272e5d80 |
line wrap: on
line diff
--- a/train_cmd.c +++ b/train_cmd.c @@ -1934,6 +1934,10 @@ TrainFindDepotData tfdd; const int32 return_value = HASBIT(p2, 1) ? 0 : CMD_ERROR; + if (HASBIT(p2, 1) && (p2 & VLW_FLAGS) == VLW_STANDARD) { + return SendAllVehiclesToDepot(VEH_Train, flags, HASBIT(p2, 0), _current_player); + } + if (!IsValidVehicleID(p1)) return return_value; v = GetVehicle(p1);