summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2007-07-04 01:34:28 +0000
committerbelugas <belugas@openttd.org>2007-07-04 01:34:28 +0000
commitcd62d5130a7153dace21b2acccd4fcfc6984b508 (patch)
tree18d5e2a19afde31e52ae2ef98638bccaa6d585c9 /src/openttd.cpp
parent2bedfcd3bf72a5ee58bb9a2685636c74a683a2fb (diff)
downloadopenttd-cd62d5130a7153dace21b2acccd4fcfc6984b508.tar.xz
(svn r10426) -Codechange: Activate the reset of industry/tiles mapping upon initialization or new game.
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r--src/openttd.cpp4
1 files changed, 4 insertions, 0 deletions
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);