diff options
author | Eugene Sandulenko | 2019-07-20 11:42:24 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:25 +0200 |
commit | b2f52580f4f268715d41ebc71f0678f782a3aa34 (patch) | |
tree | ad17b1060a05d1b8a36768c8053091fc978ab83b | |
parent | c34824de58782026091324aca843a236e531d655 (diff) | |
download | scummvm-rg350-b2f52580f4f268715d41ebc71f0678f782a3aa34.tar.gz scummvm-rg350-b2f52580f4f268715d41ebc71f0678f782a3aa34.tar.bz2 scummvm-rg350-b2f52580f4f268715d41ebc71f0678f782a3aa34.zip |
HDB: Added cheat code for MAP11 for testing the Lab
-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(); |