summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2007-05-15 21:36:58 +0000
committerbelugas <belugas@openttd.org>2007-05-15 21:36:58 +0000
commit641d51a5ad5b18a94a0e00f48c6b8efb9dcfad26 (patch)
tree70f568a4e7749c7071ef405f07b8f2998266f606 /src/openttd.cpp
parent7f88f14f641a7ac428b5c4808fe56e7d16f538d2 (diff)
downloadopenttd-641d51a5ad5b18a94a0e00f48c6b8efb9dcfad26.tar.xz
(svn r9850) -Codechange: Introduction of the Override/Substitute manager. Currently only used for newhouses.
Basically, it is more a gathering of IDs from grf files and ingame data.
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r--src/openttd.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index 088d9fce5..a2bb58b43 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -61,6 +61,7 @@
#include "newgrf.h"
#include "newgrf_config.h"
#include "newgrf_house.h"
+#include "newgrf_commons.h"
#include "player_face.h"
#include "bridge_map.h"
@@ -685,7 +686,7 @@ static void MakeNewGame(bool from_heightmap)
_game_mode = GM_NORMAL;
ResetGRFConfig(true);
- ResetHouseIDMapping();
+ _house_mngr.ResetMapping();
GenerateWorldSetCallback(&MakeNewGameDone);
GenerateWorld(from_heightmap ? GW_HEIGHTMAP : GW_NEWGAME, 1 << _patches.map_x, 1 << _patches.map_y);