diff options
author | rubidium <rubidium@openttd.org> | 2009-09-15 20:58:44 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-09-15 20:58:44 +0000 |
commit | af457fc9fe53686de6210c0bf8ec488993e22f56 (patch) | |
tree | 76f42c210572514a2f0053304b1063ea8b6e2b0f /src/vehicle_base.h | |
parent | e9ae22d2c554814cf256a95dde841cea30a86a3e (diff) | |
download | openttd-af457fc9fe53686de6210c0bf8ec488993e22f56.tar.xz |
(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.
Diffstat (limited to 'src/vehicle_base.h')
-rw-r--r-- | src/vehicle_base.h | 9 |
1 files changed, 8 insertions, 1 deletions
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 |