[Scummvm-cvs-logs] SF.net SVN: scummvm:[42659] scummvm/trunk/engines/agi/keyboard.cpp

sev at users.sourceforge.net sev at users.sourceforge.net
Wed Jul 22 14:24:55 CEST 2009


Revision: 42659
          http://scummvm.svn.sourceforge.net/scummvm/?rev=42659&view=rev
Author:   sev
Date:     2009-07-22 12:24:55 +0000 (Wed, 22 Jul 2009)

Log Message:
-----------
Fix bug #2823759: "AGI: PQ1 help not showing the first time you press F1"

Modified Paths:
--------------
    scummvm/trunk/engines/agi/keyboard.cpp

Modified: scummvm/trunk/engines/agi/keyboard.cpp
===================================================================
--- scummvm/trunk/engines/agi/keyboard.cpp	2009-07-22 11:48:51 UTC (rev 42658)
+++ scummvm/trunk/engines/agi/keyboard.cpp	2009-07-22 12:24:55 UTC (rev 42659)
@@ -393,6 +393,11 @@
 
 		_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 @@
 			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;
 }
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list