diff options
author | Nipun Garg | 2019-06-18 16:15:14 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:16:47 +0200 |
commit | d67b047306a92587b8a044e5344f717e0eac8072 (patch) | |
tree | 115c950ceeaf65d322119201056a3744e9094e4a /engines | |
parent | 21af74993a09dc59ca647cb240e9882bffe2ff59 (diff) | |
download | scummvm-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.cpp | 10 |
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; } |