From d7e1d08d53d7d9885c747d7e1095d607f8f5cebe Mon Sep 17 00:00:00 2001 From: bjarni Date: Fri, 1 Sep 2006 10:24:15 +0000 Subject: (svn r6291) -Feature: Vehicle lists from the station window now also got the goto depot button -Codechange: unified the code for mass goto depot to avoid duplicated code -Fix: Vehicles already on the way to depots will not be cancelled by mass goto depot (made it really hard to send all vehicles at once) --- vehicle_gui.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'vehicle_gui.h') diff --git a/vehicle_gui.h b/vehicle_gui.h index d9aa78c1d..29bbf32c6 100644 --- a/vehicle_gui.h +++ b/vehicle_gui.h @@ -47,6 +47,11 @@ enum { VLW_STATION_LIST = 2 << 8, }; +static inline bool ValidVLWFlags(uint16 flags) +{ + return (flags == VLW_STANDARD || flags == VLW_SHARED_ORDERS || flags == VLW_STATION_LIST); +} + void PlayerVehWndProc(Window *w, WindowEvent *e); void ShowReplaceVehicleWindow(byte vehicletype); -- cgit v1.2.3-70-g09d2