From 78905e0ab65a1c8957686fde613dd9f3038577ac Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Tue, 9 Feb 2016 19:41:59 +0100 Subject: AGI: Only set VAR_KEY,when no controller/direction Fixes Mixed Up Mother Goose Apple IIgs save/restore prompt --- engines/agi/cycle.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engines') 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); } -- cgit v1.2.3