summaryrefslogtreecommitdiff
path: root/src/window.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-05-18 17:31:41 +0000
committerrubidium <rubidium@openttd.org>2007-05-18 17:31:41 +0000
commitba24c34f8558369cc0802c92963b40ff5c7b0bc2 (patch)
tree3eac526253ee6111911b7ea868ca46065b6d5889 /src/window.h
parent2196abd71d687564597a0d4f6f9defc8679ba87b (diff)
downloadopenttd-ba24c34f8558369cc0802c92963b40ff5c7b0bc2.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.h5
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;