diff options
author | Eugene Sandulenko | 2019-07-03 18:12:05 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:10 +0200 |
commit | 3eab2731cdf60574b9ecddb09b5a8ad4a02a566b (patch) | |
tree | c62965661314e5a34566cd76431b838643c95d5a /engines/hdb/hdb.cpp | |
parent | 347dd30f784f7739da2a5ea29117851a7665e1ec (diff) | |
download | scummvm-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.cpp | 17 |
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); |