diff options
-rw-r--r-- | engines/hdb/lua-script.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/engines/hdb/lua-script.cpp b/engines/hdb/lua-script.cpp index 348f74959f..ea77a04499 100644 --- a/engines/hdb/lua-script.cpp +++ b/engines/hdb/lua-script.cpp @@ -592,7 +592,16 @@ static int entityFace(lua_State *L) { } static int clearForeground(lua_State *L) { - warning("STUB: CLEAR FOREGROUND"); + double x = lua_tonumber(L, 1); + double y = lua_tonumber(L, 2); + + g_hdb->_lua->checkParameters("clearForegnd", 2); + + lua_pop(L, 2); + + g_hdb->_map->setMapFGTileIndex((int)x, (int)y, -1); + g_hdb->_map->removeFGTileAnimation((int)x, (int)y); + return 0; } |