From a274cc6a606c65003a59650182fc31803cfae07b Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 21 Nov 2009 16:39:36 +0000 Subject: (svn r18207) -Fix [FS#3324] (r11961): [NewGRF] When starting a new game the values of action D variable 13 were incorrect --- src/genworld.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/genworld.cpp') diff --git a/src/genworld.cpp b/src/genworld.cpp index b0bdfe8d2..2bc8d97ff 100644 --- a/src/genworld.cpp +++ b/src/genworld.cpp @@ -283,18 +283,19 @@ void GenerateWorld(GenerateWorldMode mode, uint size_x, uint size_y, bool reset_ /* 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); + PrepareGenerateWorldProgress(); + /* Load the right landscape stuff */ GfxLoadSprites(); LoadStringWidthTable(); - InitializeGame(_gw.size_x, _gw.size_y, false, reset_settings); - PrepareGenerateWorldProgress(); - /* Re-init the windowing system */ ResetWindowSystem(); /* Create toolbars */ SetupColoursAndInitialWindow(); + SetObjectToPlace(SPR_CURSOR_ZZZ, PAL_NONE, HT_NONE, WC_MAIN_WINDOW, 0); if (_gw.thread != NULL) { _gw.thread->Join(); -- cgit v1.2.3-54-g00ecf