diff options
author | rubidium <rubidium@openttd.org> | 2010-08-22 09:18:01 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-08-22 09:18:01 +0000 |
commit | 56a263070f3afb6dfea3bdc5113874f8db66b23a (patch) | |
tree | 77bac298035e5812105822e93d8772de2aa8f050 /src/genworld.cpp | |
parent | fba7ce392d753a1646919eebd7a277f87262e0e5 (diff) | |
download | openttd-56a263070f3afb6dfea3bdc5113874f8db66b23a.tar.xz |
(svn r20591) -Codechange: make sure _date_fract is set when SetDate is called. Some places wouldn't reset _date_fract correctly at all
Diffstat (limited to 'src/genworld.cpp')
-rw-r--r-- | src/genworld.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/genworld.cpp b/src/genworld.cpp index 36604bf54..0e920af8b 100644 --- a/src/genworld.cpp +++ b/src/genworld.cpp @@ -296,13 +296,10 @@ void GenerateWorld(GenWorldMode mode, uint size_x, uint size_y, bool reset_setti /* This disables some commands and stuff */ SetLocalCompany(COMPANY_SPECTATOR); - /* Set the date before loading sprites as some newgrfs check it */ - SetDate(ConvertYMDToDate(_settings_game.game_creation.starting_year, 0, 1)); - - InitializeGame(_gw.size_x, _gw.size_y, false, reset_settings); + InitializeGame(_gw.size_x, _gw.size_y, true, reset_settings); PrepareGenerateWorldProgress(); - /* Load the right landscape stuff */ + /* Load the right landscape stuff, and the NewGRFs! */ GfxLoadSprites(); LoadStringWidthTable(); |