summaryrefslogtreecommitdiff
path: root/src/newgrf.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r--src/newgrf.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index f902ce601..86d2da2a6 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -7432,6 +7432,20 @@ void ResetNewGRFData()
_spritegroup_pool.CleanPool();
}
+/**
+ * Reset NewGRF data which is stored persistently in savegames.
+ */
+void ResetPersistentNewGRFData()
+{
+ /* Reset override managers */
+ _engine_mngr.ResetToDefaultMapping();
+ _house_mngr.ResetMapping();
+ _industry_mngr.ResetMapping();
+ _industile_mngr.ResetMapping();
+ _airport_mngr.ResetMapping();
+ _airporttile_mngr.ResetMapping();
+}
+
static void BuildCargoTranslationMap()
{
memset(_cur_grffile->cargo_map, 0xFF, sizeof(_cur_grffile->cargo_map));