(svn r13325) -Codechange: split the client-side only settings from the settings stored in the savegame so there is no need to have a duplicate copy of it for new games.
This commit is contained in:
@@ -205,7 +205,7 @@ void StartGeneratingLandscape(glwp_modes mode)
|
||||
DeleteAllNonVitalWindows();
|
||||
|
||||
/* Copy all XXX_newgame to XXX when coming from outside the editor */
|
||||
_settings = _settings_newgame;
|
||||
_settings_game = _settings_newgame;
|
||||
ResetGRFConfig(true);
|
||||
|
||||
SndPlayFx(SND_15_BEEP);
|
||||
@@ -377,9 +377,9 @@ struct GenerateLandscapeWindow : public QueryStringBaseWindow {
|
||||
break;
|
||||
|
||||
case GLAND_GENERATE_BUTTON: // Generate
|
||||
_settings = _settings_newgame;
|
||||
_settings_game = _settings_newgame;
|
||||
|
||||
if (_settings.economy.town_layout == TL_NO_ROADS) {
|
||||
if (_settings_game.economy.town_layout == TL_NO_ROADS) {
|
||||
ShowQuery(
|
||||
STR_TOWN_LAYOUT_WARNING_CAPTION,
|
||||
STR_TOWN_LAYOUT_WARNING_MESSAGE,
|
||||
|
Reference in New Issue
Block a user