diff options
author | Nipun Garg | 2019-06-20 19:13:19 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:16:52 +0200 |
commit | 511ec64e0c1c729689e7392e32e77720957c273d (patch) | |
tree | e11110da8c86ee3bb0865d09bacf19dbbd595e72 /engines/hdb/lua-script.cpp | |
parent | 11685a6ba140d9f695daa476a215917884b1ea51 (diff) | |
download | scummvm-rg350-511ec64e0c1c729689e7392e32e77720957c273d.tar.gz scummvm-rg350-511ec64e0c1c729689e7392e32e77720957c273d.tar.bz2 scummvm-rg350-511ec64e0c1c729689e7392e32e77720957c273d.zip |
HDB: Remove animEntity stub
Diffstat (limited to 'engines/hdb/lua-script.cpp')
-rw-r--r-- | engines/hdb/lua-script.cpp | 9 |
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; } |