aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNipun Garg2019-06-19 17:06:29 +0530
committerEugene Sandulenko2019-09-03 17:16:49 +0200
commit34372611332a73c08f5f723ca3d6fc693759cedb (patch)
tree89eb2c972219ed3a96825a2d49855389a09d8561
parent81d60644302879e6fb0d1bb4d5a79b7b9a184e0e (diff)
downloadscummvm-rg350-34372611332a73c08f5f723ca3d6fc693759cedb.tar.gz
scummvm-rg350-34372611332a73c08f5f723ca3d6fc693759cedb.tar.bz2
scummvm-rg350-34372611332a73c08f5f723ca3d6fc693759cedb.zip
HDB: Set the Entity Spawn names in Lua
-rw-r--r--engines/hdb/lua-script.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/hdb/lua-script.cpp b/engines/hdb/lua-script.cpp
index ce635d4cb8..2f2802bd4a 100644
--- a/engines/hdb/lua-script.cpp
+++ b/engines/hdb/lua-script.cpp
@@ -730,7 +730,13 @@ bool LuaScript::initScript(Common::SeekableReadStream *stream, const char *scrip
spawn names into Lua once they are implemented.
*/
- warning("STUB: LuaScript::initScript: Load ai_all_ents");
+ // Set the Entity Spawn Names in Lua
+ int j = 0;
+ while (aiEntList[j].luaName) {
+ lua_pushnumber(_state, aiEntList[j].type);
+ lua_setglobal(_state, aiEntList[j].luaName);
+ j++;
+ }
// Register panic callback function
lua_atpanic(_state, panicCB);