diff options
author | Filippos Karapetis | 2010-10-15 15:51:59 +0000 |
---|---|---|
committer | Filippos Karapetis | 2010-10-15 15:51:59 +0000 |
commit | e7ff1574efc0d69ba39c6e5acf27a1215a764048 (patch) | |
tree | 9b77de3e913b52361011b8f7aa0f50995bac9bc9 /engines/m4 | |
parent | 7f43ed3f9dd3a899a5891e17c3eaa58dc3fd29ad (diff) | |
download | scummvm-rg350-e7ff1574efc0d69ba39c6e5acf27a1215a764048.tar.gz scummvm-rg350-e7ff1574efc0d69ba39c6e5acf27a1215a764048.tar.bz2 scummvm-rg350-e7ff1574efc0d69ba39c6e5acf27a1215a764048.zip |
M4: Fixed OP_NOT and OP_COMP behavior again (thanks wjp)
svn-id: r53505
Diffstat (limited to 'engines/m4')
-rw-r--r-- | engines/m4/mads_logic.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/m4/mads_logic.cpp b/engines/m4/mads_logic.cpp index 7eb8f900a8..2d4a581abe 100644 --- a/engines/m4/mads_logic.cpp +++ b/engines/m4/mads_logic.cpp @@ -658,12 +658,12 @@ void MadsSceneLogic::execute(uint32 subOffset) { case OP_NOT: // logical nots top item on stack param = stack.pop().get(); - stack.push(ScriptVar((uint32)!(param & 0xffff))); + stack.push(ScriptVar((uint32)(!param) & 0xffff)); break; case OP_COMP: // complements top item on stack param = stack.pop().get(); - stack.push(ScriptVar(~(param & 0xffff))); + stack.push(ScriptVar((~param) & 0xffff)); break; case OP_NEG: // negates top item on stack |