diff options
-rw-r--r-- | engines/hdb/hdb.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp index bb495a8260..c982a8de28 100644 --- a/engines/hdb/hdb.cpp +++ b/engines/hdb/hdb.cpp @@ -197,6 +197,17 @@ bool HDBGame::restartMap() { _window->restartSystem(); _ai->restartSystem(); _lua->init(); + +#if CHEAT_PATCHES + if (!strcmp(_currentLuaName, "MAP11.LUA")) { + // Let enter the labs + + _lua->saveGlobalNumber("map12_complete", 1); + + strcpy(_lastMapname, "MAP12"); + } +#endif + _lua->loadLua(_currentLuaName); _sound->markSoundCacheFreeable(); |