summaryrefslogtreecommitdiff
path: root/genworld.c
diff options
context:
space:
mode:
Diffstat (limited to 'genworld.c')
-rw-r--r--genworld.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/genworld.c b/genworld.c
index 2e1f003d5..9872270b0 100644
--- a/genworld.c
+++ b/genworld.c
@@ -252,18 +252,19 @@ void GenerateWorld(int mode, uint size_x, uint size_y)
/* Make sure everything is done via OWNER_NONE */
_current_player = OWNER_NONE;
+ /* Load the right landscape stuff */
+ GfxLoadSprites();
+ LoadStringWidthTable();
+
InitializeGame(IG_DATE_RESET, _gw.size_x, _gw.size_y);
PrepareGenerateWorldProgress();
/* Re-init the windowing system */
ResetWindowSystem();
- LoadStringWidthTable();
/* Create toolbars */
SetupColorsAndInitialWindow();
- /* Load the right landscape stuff */
- GfxLoadSprites();
if (_network_dedicated ||
(_gw.thread = OTTDCreateThread(&_GenerateWorld, NULL)) == NULL) {
DEBUG(misc, 1) ("[Sl] Cannot create savegame thread, reverting to single-threaded mode...");