HDB: Complete the SetCamera stub in lua-script.cpp

This commit is contained in:
Nipun Garg 2019-06-18 16:15:14 +05:30 committed by Eugene Sandulenko
parent 21af74993a
commit d67b047306

View File

@ -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;
}