mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(svn r15422) -Fix [FS#2623] (r15383): loading NewGRFs before copying the settings.
This commit is contained in:
parent
ebd72fa0fd
commit
7b8c13fa5c
@ -284,13 +284,13 @@ void GenerateWorld(GenerateWorldMode mode, uint size_x, uint size_y)
|
|||||||
/* Set the date before loading sprites as some newgrfs check it */
|
/* Set the date before loading sprites as some newgrfs check it */
|
||||||
SetDate(ConvertYMDToDate(_settings_game.game_creation.starting_year, 0, 1));
|
SetDate(ConvertYMDToDate(_settings_game.game_creation.starting_year, 0, 1));
|
||||||
|
|
||||||
|
InitializeGame(_gw.size_x, _gw.size_y, false);
|
||||||
|
PrepareGenerateWorldProgress();
|
||||||
|
|
||||||
/* Load the right landscape stuff */
|
/* Load the right landscape stuff */
|
||||||
GfxLoadSprites();
|
GfxLoadSprites();
|
||||||
LoadStringWidthTable();
|
LoadStringWidthTable();
|
||||||
|
|
||||||
InitializeGame(_gw.size_x, _gw.size_y, false);
|
|
||||||
PrepareGenerateWorldProgress();
|
|
||||||
|
|
||||||
/* Re-init the windowing system */
|
/* Re-init the windowing system */
|
||||||
ResetWindowSystem();
|
ResetWindowSystem();
|
||||||
|
|
||||||
|
@ -649,6 +649,10 @@ int ttd_main(int argc, char *argv[])
|
|||||||
InitializeGUI();
|
InitializeGUI();
|
||||||
IConsoleCmdExec("exec scripts/autoexec.scr 0");
|
IConsoleCmdExec("exec scripts/autoexec.scr 0");
|
||||||
|
|
||||||
|
/* Initialise the sprite/string tables. */
|
||||||
|
GfxLoadSprites();
|
||||||
|
LoadStringWidthTable();
|
||||||
|
|
||||||
GenerateWorld(GW_EMPTY, 64, 64); // Make the viewport initialization happy
|
GenerateWorld(GW_EMPTY, 64, 64); // Make the viewport initialization happy
|
||||||
WaitTillGeneratedWorld();
|
WaitTillGeneratedWorld();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user