From af457fc9fe53686de6210c0bf8ec488993e22f56 Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 15 Sep 2009 20:58:44 +0000 Subject: (svn r17552) -Codechange: rename load_unload_time_rem to something more generic as it's used for more than just load/unload. Also add some documentation about where it is used. --- src/vehicle_base.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/vehicle_base.h') diff --git a/src/vehicle_base.h b/src/vehicle_base.h index bf2629765..f733297eb 100644 --- a/src/vehicle_base.h +++ b/src/vehicle_base.h @@ -182,7 +182,14 @@ public: } orders; byte vehicle_flags; ///< Used for gradual loading and other miscellaneous things (@see VehicleFlags enum) - uint16 load_unload_time_rem; + + /** + * Multi purpose variable used as counter for: + * - loading/unloading: ticks to wait before starting next cycle. + * - aircraft: ticks between each turn to prevent > 45 degree turns. + * - trains: ticks waiting in front of a signal, ticks being stuck or a counter for forced proceeding through signals. + */ + uint16 time_counter; GroupID group_id; ///< Index of group Pool array -- cgit v1.2.3-54-g00ecf