From 88395007fbf7efe248f742794c0fd1d280253789 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Wed, 22 Jul 2009 12:24:55 +0000 Subject: Fix bug #2823759: "AGI: PQ1 help not showing the first time you press F1" svn-id: r42659 --- engines/agi/keyboard.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) 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; } -- cgit v1.2.3