aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/lua-script.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/hdb/lua-script.cpp')
-rw-r--r--engines/hdb/lua-script.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/engines/hdb/lua-script.cpp b/engines/hdb/lua-script.cpp
index a42ca79857..8e7083b653 100644
--- a/engines/hdb/lua-script.cpp
+++ b/engines/hdb/lua-script.cpp
@@ -1346,10 +1346,9 @@ bool LuaScript::initScript(Common::SeekableReadStream *stream, const char *scrip
lua_setglobal(_state, luaGlobalValues[j].luaName);
}
- /*
- TODO: Set the last mapName as a global
- after implementing the map-manager.
- */
+ // set the last mapname as a global
+ lua_pushstring(_state, g_hdb->lastMapname());
+ lua_setglobal(_state, "LASTMAP");
// Set the lowest printable line
lua_pushnumber(_state, 480 - 14);