aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMartin Kiewitz2016-02-09 19:41:59 +0100
committerMartin Kiewitz2016-02-09 19:41:59 +0100
commit78905e0ab65a1c8957686fde613dd9f3038577ac (patch)
tree304c1597a6c829147f87873593779e0a7bda1c37 /engines
parent73cf4a80e8b65fda3fe959e10181308622f9da6d (diff)
downloadscummvm-rg350-78905e0ab65a1c8957686fde613dd9f3038577ac.tar.gz
scummvm-rg350-78905e0ab65a1c8957686fde613dd9f3038577ac.tar.bz2
scummvm-rg350-78905e0ab65a1c8957686fde613dd9f3038577ac.zip
AGI: Only set VAR_KEY,when no controller/direction
Fixes Mixed Up Mother Goose Apple IIgs save/restore prompt
Diffstat (limited to 'engines')
-rw-r--r--engines/agi/cycle.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/agi/cycle.cpp b/engines/agi/cycle.cpp
index 6c3f2d6825..aba0ef27db 100644
--- a/engines/agi/cycle.cpp
+++ b/engines/agi/cycle.cpp
@@ -219,9 +219,10 @@ uint16 AgiEngine::processAGIEvents() {
// no inner loop active at the moment, regular processing
if (key) {
- setVar(VM_VAR_KEY, key & 0xFF);
if (!handleController(key)) {
if (key) {
+ // Only set VAR_KEY, when no controller/direction was detected
+ setVar(VM_VAR_KEY, key & 0xFF);
if (_text->promptIsEnabled()) {
_text->promptKeyPress(key);
}