(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
This commit is contained in:
bjarni
2006-08-29 21:36:39 +00:00
parent c595c0e651
commit a73b07561e
7 changed files with 80 additions and 56 deletions

View File

@@ -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);