aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2014-12-22 00:26:53 +0200
committerFilippos Karapetis2014-12-22 00:30:26 +0200
commitdfae161386a2ad9e6828f71e90dd19598ca52f36 (patch)
treeb7054fff92dee076c9f9c57cdbd26a5d5a51bfd1 /engines
parent99087c7f454970665391004321c0fc510cdaf9bd (diff)
downloadscummvm-rg350-dfae161386a2ad9e6828f71e90dd19598ca52f36.tar.gz
scummvm-rg350-dfae161386a2ad9e6828f71e90dd19598ca52f36.tar.bz2
scummvm-rg350-dfae161386a2ad9e6828f71e90dd19598ca52f36.zip
ZVISION: Implement the Venus hint system in Zork: Nemesis
Diffstat (limited to 'engines')
-rw-r--r--engines/zvision/core/events.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/zvision/core/events.cpp b/engines/zvision/core/events.cpp
index 6cf0ae5d0d..f0cf3f0789 100644
--- a/engines/zvision/core/events.cpp
+++ b/engines/zvision/core/events.cpp
@@ -145,6 +145,11 @@ void ZVision::cheatCodes(uint8 key) {
getBufferedKey(2),
getBufferedKey(1),
getBufferedKey(0), 0);
+
+ // Show the Venus screen when "?" or "/" is pressed while inside the temple world
+ if (_scriptManager->getStateValue(StateKey_VenusEnable) == 1)
+ if ((checkCode("?") || checkCode("/")) && _scriptManager->getStateValue(StateKey_World) == 't')
+ _scriptManager->changeLocation('g', 'j', 'h', 'e', 0);
}
void ZVision::processEvents() {