aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/hdb.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2019-07-03 18:12:05 +0200
committerEugene Sandulenko2019-09-03 17:17:10 +0200
commit3eab2731cdf60574b9ecddb09b5a8ad4a02a566b (patch)
treec62965661314e5a34566cd76431b838643c95d5a /engines/hdb/hdb.cpp
parent347dd30f784f7739da2a5ea29117851a7665e1ec (diff)
downloadscummvm-rg350-3eab2731cdf60574b9ecddb09b5a8ad4a02a566b.tar.gz
scummvm-rg350-3eab2731cdf60574b9ecddb09b5a8ad4a02a566b.tar.bz2
scummvm-rg350-3eab2731cdf60574b9ecddb09b5a8ad4a02a566b.zip
HDB: Implement loadMap()
Diffstat (limited to 'engines/hdb/hdb.cpp')
-rw-r--r--engines/hdb/hdb.cpp17
1 files changed, 3 insertions, 14 deletions
diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp
index 9eaf120813..1f2f58bda2 100644
--- a/engines/hdb/hdb.cpp
+++ b/engines/hdb/hdb.cpp
@@ -106,7 +106,7 @@ bool HDBGame::init() {
error("Input::init: Couldn't initialize Input");
}
if (!_lua->init()) {
- error("LuaScript::init: Couldn't load the GLOBAL_LUA code.");
+ error("LuaScript::init: Couldn't load the GLOBAL.LUA code.");
}
_menu->init();
@@ -192,7 +192,7 @@ bool HDBGame::restartMap() {
return true;
}
-bool HDBGame::startMap(char *name) {
+bool HDBGame::startMap(const char *name) {
// save last mapname
strcpy(_lastMapname, _currentMapname);
@@ -503,18 +503,7 @@ Common::Error HDBGame::run() {
tile->load(tileStream);
#endif
- _lua->loadLua("MAP00_LUA");
-
- _lua->callFunction("level_loaded", 0);
-
- Common::SeekableReadStream *mapStream = _fileMan->findFirstData("MAP00_MSM", TYPE_BINARY);
- if (mapStream == NULL) {
- debug("The MAP00_MSM MPC entry can't be found.");
- return Common::kReadingFailed;
- }
-
- _map->load(mapStream);
- _ai->initAnimInfo();
+ startMap("MAP00");
//_window->openDialog("Sgt. Filibuster", 0, "You address me as 'sarge' or 'sergeant' or get your snappin' teeth kicked in! Got me?", 0, NULL);