aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNipun Garg2019-06-07 17:28:45 +0530
committerEugene Sandulenko2019-09-03 17:16:44 +0200
commit500f747f076a6237af235a08da0c002a99b8618d (patch)
tree38f6e1218e6fb8c3d01e2193ca77d6e188954c86
parentf51736483ddc371916e41e54be0763676deb15b0 (diff)
downloadscummvm-rg350-500f747f076a6237af235a08da0c002a99b8618d.tar.gz
scummvm-rg350-500f747f076a6237af235a08da0c002a99b8618d.tar.bz2
scummvm-rg350-500f747f076a6237af235a08da0c002a99b8618d.zip
HDB: Create and load a Map in hdb.cpp
-rw-r--r--engines/hdb/hdb.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp
index 8f0f3a1767..c65b5606d7 100644
--- a/engines/hdb/hdb.cpp
+++ b/engines/hdb/hdb.cpp
@@ -44,7 +44,7 @@ HDBGame::HDBGame(OSystem *syst, const ADGameDescription *gameDesc) : Engine(syst
g_hdb = this;
fileMan = new FileMan;
lua = new LuaScript;
- mapLoader = new MapLoader;
+ //mapLoader = new MapLoader;
DebugMan.addDebugChannel(kDebugExample1, "Example1", "This is just an example to test");
DebugMan.addDebugChannel(kDebugExample2, "Example2", "This is also an example");
@@ -54,7 +54,7 @@ HDBGame::~HDBGame() {
delete _console;
delete fileMan;
delete lua;
- delete mapLoader;
+ //delete mapLoader;
DebugMan.clearAllDebugChannels();
}
@@ -151,13 +151,13 @@ Common::Error HDBGame::run() {
lua->initScript(luaStream, "MAP00_DEMO_LUA", luaLength);
Common::SeekableReadStream *mapStream = fileMan->findFirstData("MAP00_DEMO_MSM", TYPE_BINARY);
- int32 mapLength = fileMan->getLength("MAP00_DEMO_MSM", TYPE_BINARY);
if (mapStream == NULL) {
debug("The MAP00_DEMO_MSM MPC entry can't be found.");
return Common::kReadingFailed;
}
- mapLoader->loadMap(mapStream, mapLength);
+ Map *map = new Map;
+ map->load(mapStream);
#if 0
lua->executeFile("test.lua");