[Scummvm-cvs-logs] SF.net SVN: scummvm: [28024] scummvm/trunk/engines/agi/menu.cpp
thebluegr at users.sourceforge.net
thebluegr at users.sourceforge.net
Wed Jul 11 13:46:03 CEST 2007
Revision: 28024
http://scummvm.svn.sourceforge.net/scummvm/?rev=28024&view=rev
Author: thebluegr
Date: 2007-07-11 04:46:02 -0700 (Wed, 11 Jul 2007)
Log Message:
-----------
Fix for bug #1751390 in LSL1. When choosing a menu option, an appropriate event is set. If that event is equal to 0x20, it was incorrectly triggered when the space bar key was pressed
Modified Paths:
--------------
scummvm/trunk/engines/agi/menu.cpp
Modified: scummvm/trunk/engines/agi/menu.cpp
===================================================================
--- scummvm/trunk/engines/agi/menu.cpp 2007-07-11 11:19:41 UTC (rev 28023)
+++ scummvm/trunk/engines/agi/menu.cpp 2007-07-11 11:46:02 UTC (rev 28024)
@@ -351,6 +351,12 @@
debugC(6, kDebugLevelMenu | kDebugLevelInput, "event %d registered", d->event);
_vm->_game.evKeyp[d->event].occured = true;
_vm->_game.evKeyp[d->event].data = d->event;
+ // In LSL1, event 0x20 is set when changing the game speed to normal via the menu
+ // Do not set the event data to 0x20, as this event is then incorrectly triggered
+ // when the spacebar is pressed, which has a keycode equal to 0x20 as well
+ // Fixes bug #1751390 - "LSL: after changing game speed, space key turn unfunctional"
+ if (d->event == 0x20)
+ _vm->_game.evKeyp[d->event].data = d->event + 1;
goto exit_menu;
}
}
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