Skip to content

Commit

Permalink
AGI: Only set VAR_KEY,when no controller/direction
Browse files Browse the repository at this point in the history
Fixes Mixed Up Mother Goose Apple IIgs save/restore prompt
  • Loading branch information
Martin Kiewitz committed Feb 9, 2016
1 parent 73cf4a8 commit 78905e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion engines/agi/cycle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 78905e0

Please sign in to comment.