summaryrefslogtreecommitdiff
path: root/src/vehicle_base.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-12-26 18:26:11 +0000
committerrubidium <rubidium@openttd.org>2008-12-26 18:26:11 +0000
commit17212220804ca34561bd51c68a9784ef73f82e26 (patch)
tree58e645124c2d4fecfa4b43fd889e6354cb625aa2 /src/vehicle_base.h
parenta8cb9fa2f569ce8d6272d6a1887b17c99984a036 (diff)
downloadopenttd-17212220804ca34561bd51c68a9784ef73f82e26.tar.xz
(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).
Diffstat (limited to 'src/vehicle_base.h')
-rw-r--r--src/vehicle_base.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/vehicle_base.h b/src/vehicle_base.h
index 6df247c15..d051f79d9 100644
--- a/src/vehicle_base.h
+++ b/src/vehicle_base.h
@@ -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;