(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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user