diff options
author | Nicola Mettifogo | 2007-02-08 21:56:51 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2007-02-08 21:56:51 +0000 |
commit | 6cbdf9ad59ff460fafb8b1fee9070fcb0b9151e9 (patch) | |
tree | 5b7f720a8d7bcd32225c5da018b7b0462b27ab12 /engines/parallaction | |
parent | 98a8e88f61e871096fe979c2d9a27c2053aa38ca (diff) | |
download | scummvm-rg350-6cbdf9ad59ff460fafb8b1fee9070fcb0b9151e9.tar.gz scummvm-rg350-6cbdf9ad59ff460fafb8b1fee9070fcb0b9151e9.tar.bz2 scummvm-rg350-6cbdf9ad59ff460fafb8b1fee9070fcb0b9151e9.zip |
fixed bug: dialogue questions don't clutter the screen anymore when user is selecting an answer
svn-id: r25429
Diffstat (limited to 'engines/parallaction')
-rw-r--r-- | engines/parallaction/dialogue.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/engines/parallaction/dialogue.cpp b/engines/parallaction/dialogue.cpp index d039ec1cd8..cc89362623 100644 --- a/engines/parallaction/dialogue.cpp +++ b/engines/parallaction/dialogue.cpp @@ -546,19 +546,18 @@ void runDialogue(SpeakData *data) { 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[v6] = 2000; + _answerBalloonY[i] = 2000; if (numAvailableAnswers == 1) { @@ -594,7 +593,7 @@ int16 selectAnswer(Question *q, StaticCnv *cnv) { _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 @@ int16 selectAnswer(Question *q, StaticCnv *cnv) { } + g_system->delayMillis(30); + v2 = _si; } |