From a73b07561e30e45ba94504d6e7c47cf157ab07c8 Mon Sep 17 00:00:00 2001 From: bjarni Date: Tue, 29 Aug 2006 21:36:39 +0000 Subject: (svn r6227) -Codechange: added window type flags to use with PlayerVehWndProc this makes the list type detection much easier and allowed an if cascade to be turned into a switch case this also makes it easier to add more list types --- vehicle_gui.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'vehicle_gui.h') diff --git a/vehicle_gui.h b/vehicle_gui.h index 3284508f4..5df43c11c 100644 --- a/vehicle_gui.h +++ b/vehicle_gui.h @@ -44,6 +44,14 @@ enum { PLY_WND_PRC__SIZE_OF_ROW_BIG = 36, }; +/* Vehicle List Window type flags */ +enum { + VLW_FLAGS = (1 << 8)|(1 << 9)|(1 << 10), + VLW_STANDARD = 0, + VLW_SHARED_ORDERS = 1 << 8, + VLW_STATION_LIST = 2 << 8, +}; + void PlayerVehWndProc(Window *w, WindowEvent *e); void ShowReplaceVehicleWindow(byte vehicletype); -- cgit v1.2.3-70-g09d2