summaryrefslogtreecommitdiff
path: root/vehicle.h
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2004-12-28 11:51:31 +0000
committertruelight <truelight@openttd.org>2004-12-28 11:51:31 +0000
commitc2ee8d70e48a79a1f3fbe4003c82a545a29ae195 (patch)
tree31c4abf8c556a50cc2cb6846bddb8f40f21986c9 /vehicle.h
parent41201f488c6eb3d4862f49f419ccd9915c46c162 (diff)
downloadopenttd-c2ee8d70e48a79a1f3fbe4003c82a545a29ae195.tar.xz
(svn r1288) -Codechange: changed _map2 to an uint16. It is still saved and loaded as
an uint8 till the savegame version is bumped to version 5. Then it works automaticly as a fully uint16. So _stations[] can not be increased till after the bump!!
Diffstat (limited to 'vehicle.h')
-rw-r--r--vehicle.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/vehicle.h b/vehicle.h
index de9aac5b2..09fbac9f5 100644
--- a/vehicle.h
+++ b/vehicle.h
@@ -11,7 +11,7 @@ typedef struct Order {
uint8 flags:4;
uint8 type:4;
#endif
- uint8 station;
+ uint16 station;
} Order;
static inline uint16 PackOrder(const Order *order)
@@ -62,7 +62,7 @@ typedef struct VehicleAir {
uint16 crashed_counter;
byte pos;
byte previous_pos;
- byte targetairport;
+ uint16 targetairport;
byte state;
} VehicleAir;
@@ -159,7 +159,7 @@ struct Vehicle {
byte progress;
byte vehstatus; // Status
- byte last_station_visited;
+ uint16 last_station_visited;
byte cargo_type; // type of cargo this vehicle is carrying
byte cargo_days; // how many days have the pieces been in transit