From 406ff7db10089ad502cf5a80a3534dd82c371ef7 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 11 Nov 2017 16:45:50 -0500 Subject: XEEN: Fix comparisons for script If opcode --- engines/xeen/scripts.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engines/xeen/scripts.cpp b/engines/xeen/scripts.cpp index daead8ce89..0a14de0c82 100644 --- a/engines/xeen/scripts.cpp +++ b/engines/xeen/scripts.cpp @@ -1711,11 +1711,11 @@ bool Scripts::ifProc(int action, uint32 mask, int mode, int charIndex) { switch (mode) { case 0: - return mask >= v; + return v >= mask; case 1: - return mask == v; + return v = mask; case 2: - return mask <= v; + return v <= mask; default: return false; } -- cgit v1.2.3