aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb
diff options
context:
space:
mode:
authorNipun Garg2019-06-18 16:17:28 +0530
committerEugene Sandulenko2019-09-03 17:16:47 +0200
commit35b2c26032f5c7dfd02032f6bc53145d391c4aef (patch)
tree4dd30ef50eeea2894413962f1f11fda0c82a7633 /engines/hdb
parentc322f7e3d6e1a4eb1a7136783514f590ed762020 (diff)
downloadscummvm-rg350-35b2c26032f5c7dfd02032f6bc53145d391c4aef.tar.gz
scummvm-rg350-35b2c26032f5c7dfd02032f6bc53145d391c4aef.tar.bz2
scummvm-rg350-35b2c26032f5c7dfd02032f6bc53145d391c4aef.zip
HDB: Complete the cineMoveCamera stub
Diffstat (limited to 'engines/hdb')
-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 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;
}