Add command log flag for whether order backups changed

See also: https://github.com/OpenTTD/OpenTTD/issues/9735
This commit is contained in:
Jonathan G Rennison
2021-12-06 18:19:49 +00:00
parent 54b7aa3d1b
commit b75a633dc6
3 changed files with 19 additions and 2 deletions

View File

@@ -58,6 +58,8 @@ private:
/// this count to (DAY_TICK * _settings_game.economy.day_length_factor)
int32 scheduled_dispatch_max_delay; ///< Maximum allowed delay
static uint update_counter;
/** Creation for savegame restoration. */
OrderBackup() {}
OrderBackup(const Vehicle *v, uint32 user);
@@ -77,6 +79,8 @@ public:
static void ClearGroup(GroupID group);
static void ClearVehicle(const Vehicle *v);
static void RemoveOrder(OrderType type, DestinationID destination, bool hangar);
static uint GetUpdateCounter() { return update_counter; }
};
#endif /* ORDER_BACKUP_H */