aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2014-12-22 00:45:34 +0200
committerFilippos Karapetis2014-12-22 00:45:34 +0200
commitb0e6c30ee288130d6b904a6f770044564b0490e6 (patch)
treec7328230c89a0bb273563227f8276a688623bd94 /engines
parent41dbbe346c4b46b4b48cdb38687216b1dd254fb4 (diff)
downloadscummvm-rg350-b0e6c30ee288130d6b904a6f770044564b0490e6.tar.gz
scummvm-rg350-b0e6c30ee288130d6b904a6f770044564b0490e6.tar.bz2
scummvm-rg350-b0e6c30ee288130d6b904a6f770044564b0490e6.zip
ZVISION: Fix Venus key code handling in commit dfae161
Diffstat (limited to 'engines')
-rw-r--r--engines/zvision/core/events.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/zvision/core/events.cpp b/engines/zvision/core/events.cpp
index 81ad28f29b..6e8cf1fe4f 100644
--- a/engines/zvision/core/events.cpp
+++ b/engines/zvision/core/events.cpp
@@ -148,7 +148,7 @@ void ZVision::cheatCodes(uint8 key) {
// 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')
+ if (getBufferedKey(0) == 0xBF && _scriptManager->getStateValue(StateKey_World) == 't')
_scriptManager->changeLocation('g', 'j', 'h', 'e', 0);
}