(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!!
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user