diff options
-rw-r--r-- | engines/hdb/hdb.cpp | 12 | ||||
-rw-r--r-- | engines/hdb/lua-script.cpp | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp index 42199736c4..4200693775 100644 --- a/engines/hdb/hdb.cpp +++ b/engines/hdb/hdb.cpp @@ -149,18 +149,18 @@ Common::Error HDBGame::run() { Tile *tile = new Tile; tile->load(tileStream); - Common::SeekableReadStream *luaStream = _fileMan->findFirstData("MAP00_DEMO_LUA", TYPE_BINARY); - int32 luaLength = _fileMan->getLength("MAP00_DEMO_LUA", TYPE_BINARY); + Common::SeekableReadStream *luaStream = _fileMan->findFirstData("MAP00_LUA", TYPE_BINARY); + int32 luaLength = _fileMan->getLength("MAP00_LUA", TYPE_BINARY); if (luaStream == NULL) { - debug("The MAP00_DEMO_LUA MPC entry can't be found."); + debug("The MAP00_LUA MPC entry can't be found."); return Common::kReadingFailed; } - _lua->initScript(luaStream, "MAP00_DEMO_LUA", luaLength); + _lua->initScript(luaStream, "MAP00_LUA", luaLength); - Common::SeekableReadStream *mapStream = _fileMan->findFirstData("MAP00_DEMO_MSM", TYPE_BINARY); + Common::SeekableReadStream *mapStream = _fileMan->findFirstData("MAP00_MSM", TYPE_BINARY); if (mapStream == NULL) { - debug("The MAP00_DEMO_MSM MPC entry can't be found."); + debug("The MAP00_MSM MPC entry can't be found."); return Common::kReadingFailed; } diff --git a/engines/hdb/lua-script.cpp b/engines/hdb/lua-script.cpp index d8c39a7fe8..79d164e525 100644 --- a/engines/hdb/lua-script.cpp +++ b/engines/hdb/lua-script.cpp @@ -37,7 +37,7 @@ struct ScriptPatch { {"GLOBAL_LUA", "for i,npc in npcs do", "for i,npc in pairs(npcs) do"}, {"GLOBAL_LUA", "setglobal( npcdef.codename..\"_init\", function() return NPC_Init( %npcdef ) end )", "_G[npcdef.codename .. \"_init\"] = function() return NPC_Init( npcdef ) end"}, {"GLOBAL_LUA", "setglobal( npcdef.codename..\"_use\", function(x, y, v1, v2) return NPC_Use( %npcdef, x, y, v1, v2 ) end )", "_G[npcdef.codename .. \"_use\"] = function(x, y, v1, v2) return NPC_Use( npcdef, x, y, v1, v2 ) end"}, - {"MAP00_DEMO_LUA", "tempfunc = function() emptybed_use( %x, %y, %v1, %v2 ) end", "tempfunc = function() emptybed_use(x, y, v1, v2) end"}, + {"MAP00_LUA", "tempfunc = function() emptybed_use( %x, %y, %v1, %v2 ) end", "tempfunc = function() emptybed_use(x, y, v1, v2) end"}, {NULL, NULL, NULL}, }; |