[Scummvm-cvs-logs] SF.net SVN: scummvm:[43085] scummvm/branches/gsoc2009-draci/engines/draci/ game.cpp
dkasak13 at users.sourceforge.net
dkasak13 at users.sourceforge.net
Thu Aug 6 07:17:19 CEST 2009
Revision: 43085
http://scummvm.svn.sourceforge.net/scummvm/?rev=43085&view=rev
Author: dkasak13
Date: 2009-08-06 05:17:18 +0000 (Thu, 06 Aug 2009)
Log Message:
-----------
Enabled skipping the current line of text if a mouse click occurs.
Modified Paths:
--------------
scummvm/branches/gsoc2009-draci/engines/draci/game.cpp
Modified: scummvm/branches/gsoc2009-draci/engines/draci/game.cpp
===================================================================
--- scummvm/branches/gsoc2009-draci/engines/draci/game.cpp 2009-08-06 05:04:21 UTC (rev 43084)
+++ scummvm/branches/gsoc2009-draci/engines/draci/game.cpp 2009-08-06 05:17:18 UTC (rev 43085)
@@ -330,9 +330,16 @@
uint speechDuration = kBaseSpeechDuration +
speechFrame->getLength() * kSpeechTimeUnit /
(128 / 16 + 1);
-
- if ((_vm->_system->getMillis() - _speechTick) >= speechDuration) {
+
+ // If the current speech text has expired or the user clicked a mouse button,
+ // advance to the next line of text
+ if (_vm->_mouse->lButtonPressed() ||
+ _vm->_mouse->rButtonPressed() ||
+ (_vm->_system->getMillis() - _speechTick) >= speechDuration) {
+
_shouldExitLoop = true;
+ _vm->_mouse->lButtonSet(false);
+ _vm->_mouse->rButtonSet(false);
} else {
_shouldExitLoop = false;
}
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