aboutsummaryrefslogtreecommitdiff
path: root/engines/agi
diff options
context:
space:
mode:
authorEugene Sandulenko2009-07-22 12:24:55 +0000
committerEugene Sandulenko2009-07-22 12:24:55 +0000
commit88395007fbf7efe248f742794c0fd1d280253789 (patch)
treed391e87a053bbbd4477ee1b333a2fc031bf0012a /engines/agi
parent7c1df4cbff0fc63123f907741ca1c5fefc1af791 (diff)
downloadscummvm-rg350-88395007fbf7efe248f742794c0fd1d280253789.tar.gz
scummvm-rg350-88395007fbf7efe248f742794c0fd1d280253789.tar.bz2
scummvm-rg350-88395007fbf7efe248f742794c0fd1d280253789.zip
Fix bug #2823759: "AGI: PQ1 help not showing the first time you press F1"
svn-id: r42659
Diffstat (limited to 'engines/agi')
-rw-r--r--engines/agi/keyboard.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/engines/agi/keyboard.cpp b/engines/agi/keyboard.cpp
index 6604587051..6e85ad369e 100644
--- a/engines/agi/keyboard.cpp
+++ b/engines/agi/keyboard.cpp
@@ -393,6 +393,11 @@ int AgiEngine::waitKey() {
_gfx->doUpdate();
}
+
+ // Have to clear it as original did not set this variable, and we do it in doPollKeyboard()
+ // Fixes bug #2823759
+ _game.keypress = 0;
+
return key;
}
@@ -409,6 +414,10 @@ int AgiEngine::waitAnyKey() {
break;
_gfx->doUpdate();
}
+
+ // Have to clear it as original did not set this variable, and we do it in doPollKeyboard()
+ _game.keypress = 0;
+
return key;
}