Extend vehicle running ticks to 16 bits to avoid overflow at day length > 3

This commit is contained in:
Jonathan G Rennison
2018-01-12 00:03:15 +00:00
parent 1f148322fb
commit 7b567c9d26
3 changed files with 4 additions and 3 deletions

View File

@@ -311,7 +311,7 @@ public:
byte day_counter; ///< Increased by one for each day
byte tick_counter; ///< Increased by one for each tick
byte running_ticks; ///< Number of ticks this vehicle was not stopped this day
uint16 running_ticks; ///< Number of ticks this vehicle was not stopped this day
byte vehstatus; ///< Status
Order current_order; ///< The current order (+ status, like: loading)