Add savegame flag for station tile cache flags

Update flags as necessary on load and when reloading GRFs
This commit is contained in:
Jonathan G Rennison
2023-09-30 12:19:05 +01:00
parent b2a1ec96f1
commit df4c458c29
7 changed files with 74 additions and 19 deletions

View File

@@ -129,6 +129,7 @@ extern void RebuildTownCaches(bool cargo_update_required, bool old_map_position)
extern void ShowOSErrorBox(const char *buf, bool system);
extern void NORETURN DoOSAbort();
extern std::string _config_file;
extern uint64 _station_tile_cache_hash;
bool _save_config = false;
bool _request_newgrf_scan = false;
@@ -515,6 +516,7 @@ static void ShutdownGame()
_game_load_time = 0;
_extra_aspects = 0;
_aspect_cfg_hash = 0;
_station_tile_cache_hash = 0;
InitGRFGlobalVars();
_loadgame_DBGL_data.clear();
_loadgame_DBGC_data.clear();