(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.

This commit is contained in:
rubidium
2009-09-15 20:58:44 +00:00
parent e9ae22d2c5
commit af457fc9fe
9 changed files with 40 additions and 33 deletions

View File

@@ -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