diff options
author | Nipun Garg | 2019-07-03 22:57:22 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:10 +0200 |
commit | 9da57f1eb76ce20c3943070f618559ccdda57b2e (patch) | |
tree | 05723b959596aff140814fd9efce388bca1292ab /engines | |
parent | 5e343d6591a64634dba614d27e8cef0b08ae41f9 (diff) | |
download | scummvm-rg350-9da57f1eb76ce20c3943070f618559ccdda57b2e.tar.gz scummvm-rg350-9da57f1eb76ce20c3943070f618559ccdda57b2e.tar.bz2 scummvm-rg350-9da57f1eb76ce20c3943070f618559ccdda57b2e.zip |
HDB: Add startMap lua function
Diffstat (limited to 'engines')
-rw-r--r-- | engines/hdb/lua-script.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
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; } |