summaryrefslogtreecommitdiff
path: root/src/table
diff options
context:
space:
mode:
authorplanetmaker <planetmaker@openttd.org>2010-11-07 21:46:41 +0000
committerplanetmaker <planetmaker@openttd.org>2010-11-07 21:46:41 +0000
commit5565ae1ac0d41c95812fe1a1713188a200d75876 (patch)
tree8940467fc369492be882448b48326c7764bb1bbe /src/table
parentb9ccf6dcccd6336dd24e6ed5d4cd02d93526c7c8 (diff)
downloadopenttd-5565ae1ac0d41c95812fe1a1713188a200d75876.tar.xz
(svn r21116) -Add [FS#3012]: Reduce the chances to accidentially break savegames with NewGRFs
Diffstat (limited to 'src/table')
-rw-r--r--src/table/settings.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/table/settings.h b/src/table/settings.h
index ed47cdffa..d27f509ac 100644
--- a/src/table/settings.h
+++ b/src/table/settings.h
@@ -13,7 +13,6 @@
static bool v_PositionMainToolbar(int32 p1);
static bool PopulationInLabelActive(int32 p1);
static bool RedrawScreen(int32 p1);
-static bool ReinitWindows(int32 p1);
static bool RedrawSmallmap(int32 p1);
static bool InvalidateDetailsWindow(int32 p1);
static bool InvalidateStationBuildWindow(int32 p1);
@@ -40,6 +39,7 @@ static bool ChangeDynamicEngines(int32 p1);
static bool StationCatchmentChanged(int32 p1);
static bool InvalidateVehTimetableWindow(int32 p1);
static bool InvalidateCompanyLiveryWindow(int32 p1);
+static bool InvalidateNewGRFChangeWindows(int32 p1);
static bool InvalidateIndustryViewWindow(int32 p1);
#ifdef ENABLE_NETWORK
@@ -615,8 +615,9 @@ const SettingDesc _settings[] = {
SDTC_BOOL(gui.show_date_in_logs, S, 0, false, STR_NULL, NULL),
#endif
SDTC_VAR(gui.developer, SLE_UINT8, S, 0, 1, 0, 2, 0, STR_NULL, NULL),
- SDTC_BOOL(gui.newgrf_developer_tools, S, 0, false, STR_NULL, ReinitWindows),
+ SDTC_BOOL(gui.newgrf_developer_tools, S, 0, false, STR_NULL, InvalidateNewGRFChangeWindows),
SDTC_BOOL(gui.ai_developer_tools, S, 0, false, STR_NULL, NULL),
+ SDTC_BOOL(gui.scenario_developer, S, 0, false, STR_NULL, InvalidateNewGRFChangeWindows),
SDTC_BOOL(gui.newgrf_show_old_versions, S, 0, false, STR_NULL, NULL),
SDTC_VAR(gui.console_backlog_timeout, SLE_UINT16, S, 0, 100, 10, 65500, 0, STR_NULL, NULL),
SDTC_VAR(gui.console_backlog_length, SLE_UINT16, S, 0, 100, 10, 65500, 0, STR_NULL, NULL),