diff options
author | bjarni <bjarni@openttd.org> | 2006-09-26 16:47:51 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2006-09-26 16:47:51 +0000 |
commit | 40eecb339193a9c5fb100237a1a863687ea31c55 (patch) | |
tree | 381d620a928fbc6c40266c4078ae71959a878f36 /window.h | |
parent | ce5dc846587432d853c72fcd36648ec9311eabbd (diff) | |
download | openttd-40eecb339193a9c5fb100237a1a863687ea31c55.tar.xz |
(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
Diffstat (limited to 'window.h')
-rw-r--r-- | window.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; |