From 8c5fcb36a5e914f9f7e694fd7ef41c7717bf39ed Mon Sep 17 00:00:00 2001 From: athrxx Date: Tue, 26 Feb 2019 23:35:15 +0100 Subject: KYRA: (EOB) - fix poison warning (There should be a death warning when trying to rest the party while poisoned. This did not work correctly.) --- engines/kyra/gui/gui_eob.cpp | 7 ++++--- 1 file 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; } -- cgit v1.2.3