diff options
author | rubidium <rubidium@openttd.org> | 2007-05-18 17:31:41 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-05-18 17:31:41 +0000 |
commit | c8d05162c296a6fdec7a02163b21e2fce2da7272 (patch) | |
tree | 3eac526253ee6111911b7ea868ca46065b6d5889 /src/window.h | |
parent | 2a7442fda4bddeab5da85c19e957a9ed39a70d05 (diff) | |
download | openttd-c8d05162c296a6fdec7a02163b21e2fce2da7272.tar.xz |
(svn r9869) -Codechange: replace some bytes with VehicleType, i.e. more type strictness.
Diffstat (limited to 'src/window.h')
-rw-r--r-- | src/window.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/window.h b/src/window.h index 1f74df9b0..85bb74dac 100644 --- a/src/window.h +++ b/src/window.h @@ -10,6 +10,7 @@ #include "order.h" #include "rail.h" #include "airport.h" +#include "vehicle.h" struct WindowEvent; @@ -323,7 +324,7 @@ struct tooltips_d { assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(tooltips_d)); struct buildvehicle_d { - byte vehicle_type; + VehicleType vehicle_type; union { RailTypeByte railtype; AirportFTAClass::Flags flags; @@ -352,7 +353,7 @@ assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(replaceveh_d)); struct depot_d { VehicleID sel; - byte type; + VehicleType type; bool generate_list; uint16 engine_list_length; uint16 wagon_list_length; |