diff options
author | Nipun Garg | 2019-07-01 09:07:19 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:06 +0200 |
commit | aadc58ca474d2e99a9246f3e0fc581a2fa034812 (patch) | |
tree | 819b21c10354f25a5be4d9486fef9b2dcf7f560f | |
parent | 1ee37266b19b9ddcebfdfd2032bb06ace647be64 (diff) | |
download | scummvm-rg350-aadc58ca474d2e99a9246f3e0fc581a2fa034812.tar.gz scummvm-rg350-aadc58ca474d2e99a9246f3e0fc581a2fa034812.tar.bz2 scummvm-rg350-aadc58ca474d2e99a9246f3e0fc581a2fa034812.zip |
HDB: Add Lua function for killTrigger()
-rw-r--r-- | engines/hdb/lua-script.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/hdb/lua-script.cpp b/engines/hdb/lua-script.cpp index b0adc96558..f9d0aa7039 100644 --- a/engines/hdb/lua-script.cpp +++ b/engines/hdb/lua-script.cpp @@ -838,7 +838,12 @@ static int removeInvItem(lua_State *L) { } static int killTrigger(lua_State *L) { - warning("STUB: KILL TRIGGER"); + char *id = (char *)lua_tostring(L, 1); + + g_hdb->_lua->checkParameters("killTrigger", 1); + + lua_pop(L, 1); + g_hdb->_ai->killTrigger(id); return 0; } |