(svn r6513) -Codechange: unified the code to draw depot windows

This change is intended to make it easier to make depot behaviour consistent
   and faster to code when adding more features in the future
   The user interface should hopefully not be affected by this
This commit is contained in:
bjarni
2006-09-26 16:47:51 +00:00
parent ce5dc84658
commit 40eecb3391
15 changed files with 827 additions and 1264 deletions

View File

@@ -394,14 +394,15 @@ assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(replaceveh_d));
typedef struct {
VehicleID sel;
byte type;
uint16 engine_list_length;
uint16 wagon_list_length;
uint16 engine_count;
uint16 wagon_count;
Vehicle **vehicle_list;
Vehicle **wagon_list;
} traindepot_d;
assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(traindepot_d));
} depot_d;
assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(depot_d));
typedef struct {
int sel;