diff options
| author | Nicola Mettifogo | 2008-01-02 21:33:18 +0000 | 
|---|---|---|
| committer | Nicola Mettifogo | 2008-01-02 21:33:18 +0000 | 
| commit | b91300e1ccba5aa6c95977849aba99342c29375b (patch) | |
| tree | 6c90faa3fc40553c3c92efe09120d7bc1b85efb2 | |
| parent | da3d85c755500966953c2abb6b0faffd369bbf92 (diff) | |
| download | scummvm-rg350-b91300e1ccba5aa6c95977849aba99342c29375b.tar.gz scummvm-rg350-b91300e1ccba5aa6c95977849aba99342c29375b.tar.bz2 scummvm-rg350-b91300e1ccba5aa6c95977849aba99342c29375b.zip  | |
Fix for bug #1829409. Character now changes expression accordingly with available dialogue answers.
svn-id: r30171
| -rw-r--r-- | engines/parallaction/dialogue.cpp | 5 | 
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/parallaction/dialogue.cpp b/engines/parallaction/dialogue.cpp index 1bf4ec49c1..c1a8c91d9a 100644 --- a/engines/parallaction/dialogue.cpp +++ b/engines/parallaction/dialogue.cpp @@ -314,7 +314,8 @@ int16 DialogueManager::selectAnswer() {  		_vm->readInput();  		_si = getHoverAnswer(_vm->_mousePos.x, _vm->_mousePos.y); -		if (_si != v2) { +		if (_si != v2 && _si != -1) { +  			if (v2 != -1)  				_vm->_gfx->displayWrappedString(_q->_answers[v2]->_text, _answerBalloonX[v2], _answerBalloonY[v2], 3, MAX_BALLOON_WIDTH); @@ -356,7 +357,7 @@ int16 DialogueManager::getHoverAnswer(int16 x, int16 y) {  	} -	return 0; +	return -1;  }  | 
