[Scummvm-cvs-logs] SF.net SVN: scummvm: [25429] scummvm/trunk/engines/parallaction/dialogue. cpp
peres001 at users.sourceforge.net
peres001 at users.sourceforge.net
Thu Feb 8 22:56:52 CET 2007
Revision: 25429
http://scummvm.svn.sourceforge.net/scummvm/?rev=25429&view=rev
Author: peres001
Date: 2007-02-08 13:56:51 -0800 (Thu, 08 Feb 2007)
Log Message:
-----------
fixed bug: dialogue questions don't clutter the screen anymore when user is selecting an answer
Modified Paths:
--------------
scummvm/trunk/engines/parallaction/dialogue.cpp
Modified: scummvm/trunk/engines/parallaction/dialogue.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/dialogue.cpp 2007-02-08 21:55:37 UTC (rev 25428)
+++ scummvm/trunk/engines/parallaction/dialogue.cpp 2007-02-08 21:56:51 UTC (rev 25429)
@@ -546,20 +546,19 @@
int16 selectAnswer(Question *q, StaticCnv *cnv) {
- int16 v6 = 0;
int16 numAvailableAnswers = 0;
int16 _si = 0;
int16 _di = 0;
- for (; q->_answers[v6]; v6++) {
- if (_answerBalloonY[v6] == SKIPPED_ANSWER) continue;
+ int16 i = 0;
+ for (; q->_answers[i]; i++) {
+ if (_answerBalloonY[i] == SKIPPED_ANSWER) continue;
- _di = v6;
+ _di = i;
numAvailableAnswers++;
}
+ _answerBalloonY[i] = 2000;
- _answerBalloonY[v6] = 2000;
-
if (numAvailableAnswers == 1) {
_vm->_graphics->displayWrappedString(
@@ -594,7 +593,7 @@
_si = getHoverAnswer(_mousePos._x, _mousePos._y, q);
if (_si != v2) {
- if (_si != -1) {
+ if (v2 != -1) {
_vm->_graphics->displayWrappedString(
q->_answers[v2],
_answerBalloonX[v2],
@@ -625,6 +624,8 @@
}
+ g_system->delayMillis(30);
+
v2 = _si;
}
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