From d67b047306a92587b8a044e5344f717e0eac8072 Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Tue, 18 Jun 2019 16:15:14 +0530 Subject: HDB: Complete the SetCamera stub in lua-script.cpp --- engines/hdb/lua-script.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/hdb/lua-script.cpp b/engines/hdb/lua-script.cpp index f2d3956727..2db3b0241e 100644 --- a/engines/hdb/lua-script.cpp +++ b/engines/hdb/lua-script.cpp @@ -122,7 +122,15 @@ static int cineUnlockPlayer(lua_State *L) { } static int cineSetCamera(lua_State *L) { - warning("STUB: CINE SET CAMERA"); + double x = lua_tonumber(L, 1); + double y = lua_tonumber(L, 2); + + g_hdb->_lua->checkParameters("cineSetCamera", 2); + + lua_pop(L, 2); + + g_hdb->_ai->cineSetCamera((int) x, (int) y); + return 0; } -- cgit v1.2.3