diff options
author | athrxx | 2019-02-26 23:35:15 +0100 |
---|---|---|
committer | athrxx | 2019-03-06 20:48:26 +0100 |
commit | 8c5fcb36a5e914f9f7e694fd7ef41c7717bf39ed (patch) | |
tree | cfe4f452000d264e184b59fcaa1bcd2502249824 /engines/kyra | |
parent | 412a10ede3133a6bd06d0975f242a59416c76a56 (diff) | |
download | scummvm-rg350-8c5fcb36a5e914f9f7e694fd7ef41c7717bf39ed.tar.gz scummvm-rg350-8c5fcb36a5e914f9f7e694fd7ef41c7717bf39ed.tar.bz2 scummvm-rg350-8c5fcb36a5e914f9f7e694fd7ef41c7717bf39ed.zip |
KYRA: (EOB) - fix poison warning
(There should be a death warning when trying to rest the party while poisoned. This did not work correctly.)
Diffstat (limited to 'engines/kyra')
-rw-r--r-- | engines/kyra/gui/gui_eob.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/kyra/gui/gui_eob.cpp b/engines/kyra/gui/gui_eob.cpp index 1babce7267..b89f308c01 100644 --- a/engines/kyra/gui/gui_eob.cpp +++ b/engines/kyra/gui/gui_eob.cpp @@ -3506,14 +3506,15 @@ bool GUI_EoB::restParty() { drawMenuButtonBox(_screen->_curDim->sx << 3, _screen->_curDim->sy, _screen->_curDim->w << 3, _screen->_curDim->h, false, false); - int nonPoisoned = 0; + bool poisoned = false; for (int i = 0; i < 6; i++) { if (!_vm->testCharacter(i, 1)) continue; - nonPoisoned |= _vm->testCharacter(i, 0x10); + if (!_vm->testCharacter(i, 0x10)) + poisoned = true; } - if (!nonPoisoned) { + if (poisoned) { if (!confirmDialogue(59)) return false; } |