diff options
author | rubidium <rubidium@openttd.org> | 2008-05-26 21:38:17 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-05-26 21:38:17 +0000 |
commit | 290b3bd3cc6e0562d7561d2319d5805d46bd54e3 (patch) | |
tree | e42587f22d3cfe46d11f12be7b8d010c0fcd713a /src/settings.cpp | |
parent | f2a5b2556cf71d39256fe5a6c2c3372e6474f624 (diff) | |
download | openttd-290b3bd3cc6e0562d7561d2319d5805d46bd54e3.tar.xz |
(svn r13277) -Fix: opntitle 'jumping' to the temperate climate when closing the NewGRF settings window.
Diffstat (limited to 'src/settings.cpp')
-rw-r--r-- | src/settings.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/settings.cpp b/src/settings.cpp index fc151e4e5..38108c5ac 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -2265,22 +2265,16 @@ static void Save_PATS() void CheckConfig() { - // Increase old default values for pf_maxdepth and pf_maxlength - // to support big networks. + /* + * Increase old default values for pf_maxdepth and pf_maxlength + * to support big networks. + */ if (_settings_newgame.pf.opf.pf_maxdepth == 16 && _settings_newgame.pf.opf.pf_maxlength == 512) { _settings_newgame.pf.opf.pf_maxdepth = 48; _settings_newgame.pf.opf.pf_maxlength = 4096; } } -void UpdatePatches() -{ - /* Since old(er) savegames don't have any patches saved, we initialise - * them with the default values just as it was in the old days. - * Also new games need this copying-over */ - _settings = _settings_newgame; /* backwards compatibility */ -} - extern const ChunkHandler _setting_chunk_handlers[] = { { 'OPTS', NULL, Load_OPTS, CH_RIFF}, { 'PATS', Save_PATS, Load_PATS, CH_RIFF | CH_LAST}, |