[Scummvm-git-logs] scummvm master -> 488c22631b867c7265e901333cd087f3ddf2069a

dreammaster dreammaster at scummvm.org
Sun May 6 01:31:25 CEST 2018


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
488c22631b XEEN: Fix checks for whether Hp/Sp fountains can be used


Commit: 488c22631b867c7265e901333cd087f3ddf2069a
    https://github.com/scummvm/scummvm/commit/488c22631b867c7265e901333cd087f3ddf2069a
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2018-05-05T19:31:19-04:00

Commit Message:
XEEN: Fix checks for whether Hp/Sp fountains can be used

Changed paths:
    engines/xeen/scripts.cpp


diff --git a/engines/xeen/scripts.cpp b/engines/xeen/scripts.cpp
index 4a2e5cc..a243951 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





More information about the Scummvm-git-logs mailing list