From a85d72c60d0b430f406245674a922e2a852a9165 Mon Sep 17 00:00:00 2001 From: belugas Date: Wed, 4 Jul 2007 01:34:28 +0000 Subject: (svn r10426) -Codechange: Activate the reset of industry/tiles mapping upon initialization or new game. --- src/openttd.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/openttd.cpp b/src/openttd.cpp index e0060321b..c27fc578f 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -286,6 +286,8 @@ static void InitializeDynamicVariables() /* Dynamic stuff needs to be initialized somewhere... */ _town_sort = NULL; _industry_sort = NULL; + _industry_mngr.ResetMapping(); + _industile_mngr.ResetMapping(); } @@ -704,6 +706,8 @@ static void MakeNewGame(bool from_heightmap) ResetGRFConfig(true); _house_mngr.ResetMapping(); + _industile_mngr.ResetMapping(); + _industry_mngr.ResetMapping(); GenerateWorldSetCallback(&MakeNewGameDone); GenerateWorld(from_heightmap ? GW_HEIGHTMAP : GW_NEWGAME, 1 << _patches.map_x, 1 << _patches.map_y); -- cgit v1.2.3-70-g09d2