From 488c22631b867c7265e901333cd087f3ddf2069a Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 5 May 2018 19:31:19 -0400 Subject: XEEN: Fix checks for whether Hp/Sp fountains can be used --- engines/xeen/scripts.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'engines/xeen') diff --git a/engines/xeen/scripts.cpp b/engines/xeen/scripts.cpp index 4a2e5ccb86..a243951f16 100644 --- a/engines/xeen/scripts.cpp +++ b/engines/xeen/scripts.cpp @@ -1814,16 +1814,16 @@ bool Scripts::ifProc(int action, uint32 val, int mode, int charIndex) { v = ps->_ACTemp; break; case 78: - // Test whether current Hp is equal to or exceeds the max HP - v = ps->_currentHp >= ps->getMaxHP() ? 1 : 0; + // Test whether current Hp exceeds max HP or not + v = ps->_currentHp <= ps->getMaxHP() ? 1 : 0; break; case 79: // Test for Wizard Eye being active v = party._wizardEyeActive ? 1 : 0; break; case 81: - // Test whether current Sp is equal to or exceeds the max SP - v = ps->_currentSp >= ps->getMaxSP() ? 1 : 0; + // Test whether current Sp exceeds the max SP or not + v = ps->_currentSp <= ps->getMaxSP() ? 1 : 0; break; case 84: // Current facing direction -- cgit v1.2.3