(svn r9869) -Codechange: replace some bytes with VehicleType, i.e. more type strictness.

This commit is contained in:
rubidium
2007-05-18 17:31:41 +00:00
parent 2a7442fda4
commit c8d05162c2
13 changed files with 39 additions and 28 deletions

View File

@@ -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;