From 6a7d3a05d5e870f289ab099fd20c50e3b4ad13bb Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Tue, 18 Jun 2019 16:17:53 +0530 Subject: HDB: Complete stubs: cineWait + cineWaitUntilDone --- engines/hdb/lua-script.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'engines/hdb') diff --git a/engines/hdb/lua-script.cpp b/engines/hdb/lua-script.cpp index 3bfc30d7c8..f6b80519a3 100644 --- a/engines/hdb/lua-script.cpp +++ b/engines/hdb/lua-script.cpp @@ -153,12 +153,17 @@ static int cineMoveCamera(lua_State *L) { } static int cineWait(lua_State *L) { - warning("STUB: CINE WAIT"); + double seconds = lua_tonumber(L, 1); + + g_hdb->_lua->checkParameters("cineWait", 1); + + lua_pop(L, 1); + g_hdb->_ai->cineWait((int) seconds); return 0; } static int cineWaitUntilDone(lua_State *L) { - warning("STUB: CINE WAIT UNTIL DONE"); + g_hdb->_ai->cineWaitUntilDone(); return 0; } -- cgit v1.2.3