summaryrefslogtreecommitdiff
path: root/src/genworld_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-05-26 21:38:17 +0000
committerrubidium <rubidium@openttd.org>2008-05-26 21:38:17 +0000
commit495ca8fdb9e658ebcdb8aa90bafc2df107819ea9 (patch)
treee42587f22d3cfe46d11f12be7b8d010c0fcd713a /src/genworld_gui.cpp
parenta0b14f02c89d5083ee8b65a956cc68881004d3a4 (diff)
downloadopenttd-495ca8fdb9e658ebcdb8aa90bafc2df107819ea9.tar.xz
(svn r13277) -Fix: opntitle 'jumping' to the temperate climate when closing the NewGRF settings window.
Diffstat (limited to 'src/genworld_gui.cpp')
-rw-r--r--src/genworld_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/genworld_gui.cpp b/src/genworld_gui.cpp
index ef040e4da..e4014529c 100644
--- a/src/genworld_gui.cpp
+++ b/src/genworld_gui.cpp
@@ -205,7 +205,7 @@ void StartGeneratingLandscape(glwp_modes mode)
DeleteAllNonVitalWindows();
/* Copy all XXX_newgame to XXX when coming from outside the editor */
- UpdatePatches();
+ _settings = _settings_newgame;
ResetGRFConfig(true);
SndPlayFx(SND_15_BEEP);
@@ -377,7 +377,7 @@ struct GenerateLandscapeWindow : public QueryStringBaseWindow {
break;
case GLAND_GENERATE_BUTTON: // Generate
- UpdatePatches();
+ _settings = _settings_newgame;
if (_settings.economy.town_layout == TL_NO_ROADS) {
ShowQuery(