From 35b2c26032f5c7dfd02032f6bc53145d391c4aef Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Tue, 18 Jun 2019 16:17:28 +0530 Subject: HDB: Complete the cineMoveCamera stub --- engines/hdb/lua-script.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/engines/hdb/lua-script.cpp b/engines/hdb/lua-script.cpp index 4be88fad32..3bfc30d7c8 100644 --- a/engines/hdb/lua-script.cpp +++ b/engines/hdb/lua-script.cpp @@ -140,7 +140,15 @@ static int cineResetCamera(lua_State *L) { } static int cineMoveCamera(lua_State *L) { - warning("STUB: CINE MOVE CAMERA"); + double x = lua_tonumber(L, 1); + double y = lua_tonumber(L, 2); + double speed = lua_tonumber(L, 3); + + g_hdb->_lua->checkParameters("cineMoveCamera", 3); + + lua_pop(L, 3); + g_hdb->_ai->cineMoveCamera((int) x, (int) y, (int) speed); + return 0; } -- cgit v1.2.3