aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorNipun Garg2019-06-18 16:15:14 +0530
committerEugene Sandulenko2019-09-03 17:16:47 +0200
commitd67b047306a92587b8a044e5344f717e0eac8072 (patch)
tree115c950ceeaf65d322119201056a3744e9094e4a /engines
parent21af74993a09dc59ca647cb240e9882bffe2ff59 (diff)
downloadscummvm-rg350-d67b047306a92587b8a044e5344f717e0eac8072.tar.gz
scummvm-rg350-d67b047306a92587b8a044e5344f717e0eac8072.tar.bz2
scummvm-rg350-d67b047306a92587b8a044e5344f717e0eac8072.zip
HDB: Complete the SetCamera stub in lua-script.cpp
Diffstat (limited to 'engines')
-rw-r--r--engines/hdb/lua-script.cpp10
1 files changed, 9 insertions, 1 deletions
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;
}