aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNipun Garg2019-06-20 19:13:19 +0530
committerEugene Sandulenko2019-09-03 17:16:52 +0200
commit511ec64e0c1c729689e7392e32e77720957c273d (patch)
treee11110da8c86ee3bb0865d09bacf19dbbd595e72
parent11685a6ba140d9f695daa476a215917884b1ea51 (diff)
downloadscummvm-rg350-511ec64e0c1c729689e7392e32e77720957c273d.tar.gz
scummvm-rg350-511ec64e0c1c729689e7392e32e77720957c273d.tar.bz2
scummvm-rg350-511ec64e0c1c729689e7392e32e77720957c273d.zip
HDB: Remove animEntity stub
-rw-r--r--engines/hdb/lua-script.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/engines/hdb/lua-script.cpp b/engines/hdb/lua-script.cpp
index c7a2947af2..e73e8facf4 100644
--- a/engines/hdb/lua-script.cpp
+++ b/engines/hdb/lua-script.cpp
@@ -385,7 +385,14 @@ static int removeEntity(lua_State *L) {
}
static int animEntity(lua_State *L) {
- warning("STUB: ANIM ENTITY");
+ const char *entName = lua_tostring(L, 1);
+ double state = lua_tonumber(L, 2);
+
+ g_hdb->_lua->checkParameters("animEntity", 2);
+
+ lua_pop(L, 2);
+ int s = (int)state;
+ g_hdb->_ai->animLuaEntity(entName, (AIState)s);
return 0;
}