diff options
author | rubidium <rubidium@openttd.org> | 2009-08-06 22:00:32 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-08-06 22:00:32 +0000 |
commit | ba4fd897b823fa4dc36ad3fbf0db36b94b95628b (patch) | |
tree | f68e0b5d1bb325182e763285855fca5dfd128856 /src/misc.cpp | |
parent | 3ecf3357181c0f01896d97d0a7b40bf9206d7327 (diff) | |
download | openttd-ba4fd897b823fa4dc36ad3fbf0db36b94b95628b.tar.xz |
(svn r17097) -Fix [FS#3092] (r13256): make restart command work again and make the help show how it works and how it doesn't work
Diffstat (limited to 'src/misc.cpp')
-rw-r--r-- | src/misc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/misc.cpp b/src/misc.cpp index 24bad8255..34e68e860 100644 --- a/src/misc.cpp +++ b/src/misc.cpp @@ -52,7 +52,7 @@ void InitializeCheats(); void InitializeNPF(); void InitializeOldNames(); -void InitializeGame(uint size_x, uint size_y, bool reset_date) +void InitializeGame(uint size_x, uint size_y, bool reset_date, bool reset_settings) { /* Make sure there isn't any window that can influence anything * related to the new game we're about to start/load. */ @@ -69,7 +69,7 @@ void InitializeGame(uint size_x, uint size_y, bool reset_date) _date_fract = 0; _cur_tileloop_tile = 0; _thd.redsq = INVALID_TILE; - MakeNewgameSettingsLive(); + if (reset_settings) MakeNewgameSettingsLive(); if (reset_date) { SetDate(ConvertYMDToDate(_settings_game.game_creation.starting_year, 0, 1)); |