mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-08 01:10:28 +00:00
(svn r10426) -Codechange: Activate the reset of industry/tiles mapping upon initialization or new game.
This commit is contained in:
parent
de43302419
commit
a85d72c60d
@ -286,6 +286,8 @@ static void InitializeDynamicVariables()
|
|||||||
/* Dynamic stuff needs to be initialized somewhere... */
|
/* Dynamic stuff needs to be initialized somewhere... */
|
||||||
_town_sort = NULL;
|
_town_sort = NULL;
|
||||||
_industry_sort = NULL;
|
_industry_sort = NULL;
|
||||||
|
_industry_mngr.ResetMapping();
|
||||||
|
_industile_mngr.ResetMapping();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -704,6 +706,8 @@ static void MakeNewGame(bool from_heightmap)
|
|||||||
|
|
||||||
ResetGRFConfig(true);
|
ResetGRFConfig(true);
|
||||||
_house_mngr.ResetMapping();
|
_house_mngr.ResetMapping();
|
||||||
|
_industile_mngr.ResetMapping();
|
||||||
|
_industry_mngr.ResetMapping();
|
||||||
|
|
||||||
GenerateWorldSetCallback(&MakeNewGameDone);
|
GenerateWorldSetCallback(&MakeNewGameDone);
|
||||||
GenerateWorld(from_heightmap ? GW_HEIGHTMAP : GW_NEWGAME, 1 << _patches.map_x, 1 << _patches.map_y);
|
GenerateWorld(from_heightmap ? GW_HEIGHTMAP : GW_NEWGAME, 1 << _patches.map_x, 1 << _patches.map_y);
|
||||||
|
Loading…
Reference in New Issue
Block a user