diff options
author | Nicola Mettifogo | 2007-03-18 09:09:02 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2007-03-18 09:09:02 +0000 |
commit | 03249397e01bd5944e530f6bc5691dac77bac17e (patch) | |
tree | a7bd8637ad1088d7f0d7f936de9acdece39a00c1 | |
parent | 97426c8808d954af91f2a418f39845d96d717600 (diff) | |
download | scummvm-rg350-03249397e01bd5944e530f6bc5691dac77bac17e.tar.gz scummvm-rg350-03249397e01bd5944e530f6bc5691dac77bac17e.tar.bz2 scummvm-rg350-03249397e01bd5944e530f6bc5691dac77bac17e.zip |
more formatting
svn-id: r26194
-rw-r--r-- | engines/parallaction/dialogue.cpp | 51 |
1 files changed, 6 insertions, 45 deletions
diff --git a/engines/parallaction/dialogue.cpp b/engines/parallaction/dialogue.cpp index 423f90a82b..e8bdcde2df 100644 --- a/engines/parallaction/dialogue.cpp +++ b/engines/parallaction/dialogue.cpp @@ -470,26 +470,10 @@ int16 selectAnswer(Question *q, StaticCnv *cnv) { _answerBalloonY[i] = 2000; if (numAvailableAnswers == 1) { - - _vm->_gfx->displayWrappedString( - q->_answers[_di], - _answerBalloonX[_di], - _answerBalloonY[_di], - MAX_BALLOON_WIDTH, - 0 - ); - + _vm->_gfx->displayWrappedString(q->_answers[_di], _answerBalloonX[_di], _answerBalloonY[_di], MAX_BALLOON_WIDTH, 0); cnv->_data0 = _vm->_char._talk._array[q->_answer_moods[_di] & 0xF]; // cnv->_data1 = _vm->_char._talk.field_8[q->_answer_moods[_di] & 0xF]; - - _vm->_gfx->flatBlitCnv( - cnv, - ANSWER_CHARACTER_X, - ANSWER_CHARACTER_Y, - Gfx::kBitFront, - cnv->_data1 - ); - + _vm->_gfx->flatBlitCnv(cnv, ANSWER_CHARACTER_X, ANSWER_CHARACTER_Y, Gfx::kBitFront, cnv->_data1); waitUntilLeftClick(); return _di; } @@ -503,39 +487,16 @@ int16 selectAnswer(Question *q, StaticCnv *cnv) { _si = getHoverAnswer(_mousePos._x, _mousePos._y, q); if (_si != v2) { - if (v2 != -1) { - _vm->_gfx->displayWrappedString( - q->_answers[v2], - _answerBalloonX[v2], - _answerBalloonY[v2], - MAX_BALLOON_WIDTH, - 3 - ); - } - - _vm->_gfx->displayWrappedString( - q->_answers[_si], - _answerBalloonX[_si], - _answerBalloonY[_si], - MAX_BALLOON_WIDTH, - 0 - ); + if (v2 != -1) + _vm->_gfx->displayWrappedString(q->_answers[v2], _answerBalloonX[v2], _answerBalloonY[v2], MAX_BALLOON_WIDTH, 3); + _vm->_gfx->displayWrappedString(q->_answers[_si], _answerBalloonX[_si], _answerBalloonY[_si], MAX_BALLOON_WIDTH, 0); cnv->_data0 = _vm->_char._talk._array[q->_answer_moods[_si] & 0xF]; // cnv->_data1 = _vm->_char._talk.field_8[q->_answer_moods[_si] & 0xF]; - - _vm->_gfx->flatBlitCnv( - cnv, - ANSWER_CHARACTER_X, - ANSWER_CHARACTER_Y, - Gfx::kBitFront, - cnv->_data1 - ); - + _vm->_gfx->flatBlitCnv(cnv, ANSWER_CHARACTER_X, ANSWER_CHARACTER_Y, Gfx::kBitFront, cnv->_data1); } g_system->delayMillis(30); - v2 = _si; } |