Changeset - r11079:c2f77ef6c09e
[Not reviewed]
master
0 2 0
rubidium - 16 years ago 2009-02-08 23:06:56
rubidium@openttd.org
(svn r15422) -Fix [FS#2623] (r15383): loading NewGRFs before copying the settings.
2 files changed with 7 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/genworld.cpp
Show inline comments
 
@@ -284,13 +284,13 @@ void GenerateWorld(GenerateWorldMode mod
 
	/* 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);
 
	PrepareGenerateWorldProgress();
 

	
 
	/* Load the right landscape stuff */
 
	GfxLoadSprites();
 
	LoadStringWidthTable();
 

	
 
	InitializeGame(_gw.size_x, _gw.size_y, false);
 
	PrepareGenerateWorldProgress();
 

	
 
	/* Re-init the windowing system */
 
	ResetWindowSystem();
 

	
src/openttd.cpp
Show inline comments
 
@@ -649,6 +649,10 @@ int ttd_main(int argc, char *argv[])
 
	InitializeGUI();
 
	IConsoleCmdExec("exec scripts/autoexec.scr 0");
 

	
 
	/* Initialise the sprite/string tables. */
 
	GfxLoadSprites();
 
	LoadStringWidthTable();
 

	
 
	GenerateWorld(GW_EMPTY, 64, 64); // Make the viewport initialization happy
 
	WaitTillGeneratedWorld();
 

	
0 comments (0 inline, 0 general)