(svn r14745) -Codechange: move "depot_list" and "leave_depot_immediately" out of the vehicle struct (saving up to 16 bytes per vehicle) as it is only used to tell a calling function entered a depot (for autoreplace).
This commit is contained in:
@@ -212,8 +212,6 @@ public:
|
||||
friend void AfterLoadVehicles(bool clear_te_id); ///< So we can set the previous and first pointers while loading
|
||||
friend bool LoadOldVehicle(LoadgameState *ls, int num); ///< So we can set the proper next pointer while loading
|
||||
|
||||
Vehicle *depot_list; ///< NOSAVE: linked list to tell what vehicles entered a depot during the last tick. Used by autoreplace
|
||||
|
||||
char *name; ///< Name of vehicle
|
||||
|
||||
TileIndex tile; ///< Current tile index
|
||||
@@ -309,8 +307,6 @@ public:
|
||||
|
||||
Order *orders; ///< Pointer to the first order for this vehicle
|
||||
|
||||
bool leave_depot_instantly; ///< NOSAVE: stores if the vehicle needs to leave the depot it just entered. Used by autoreplace
|
||||
|
||||
byte vehicle_flags; ///< Used for gradual loading and other miscellaneous things (@see VehicleFlags enum)
|
||||
uint16 load_unload_time_rem;
|
||||
|
||||
|
Reference in New Issue
Block a user