From 9da57f1eb76ce20c3943070f618559ccdda57b2e Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Wed, 3 Jul 2019 22:57:22 +0530 Subject: HDB: Add startMap lua function --- engines/hdb/lua-script.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/hdb/lua-script.cpp b/engines/hdb/lua-script.cpp index 4731136205..02bf16ca50 100644 --- a/engines/hdb/lua-script.cpp +++ b/engines/hdb/lua-script.cpp @@ -932,7 +932,13 @@ static int freeSound(lua_State *L) { } static int startMap(lua_State *L) { - warning("STUB: START MAP"); + const char *string = lua_tostring(L, 1); + + g_hdb->_lua->checkParameters("startMap", 1); + + lua_pop(L, 1); + g_hdb->changeLevel((char *)string); + return 0; } -- cgit v1.2.3