diff options
author | Max Horn | 2002-08-24 21:32:24 +0000 |
---|---|---|
committer | Max Horn | 2002-08-24 21:32:24 +0000 |
commit | 054f1fa69bd17b99cd0b3ecd610d3702d8ef2d02 (patch) | |
tree | 7915bf118ecc766c1e8b3f773f2859b6a6634b37 /scumm | |
parent | 901b4a07a6a033bc871a64a634b5a3564c1a4fc8 (diff) | |
download | scummvm-rg350-054f1fa69bd17b99cd0b3ecd610d3702d8ef2d02.tar.gz scummvm-rg350-054f1fa69bd17b99cd0b3ecd610d3702d8ef2d02.tar.bz2 scummvm-rg350-054f1fa69bd17b99cd0b3ecd610d3702d8ef2d02.zip |
simplified code (thanks to MadMoose for pointing this out)
svn-id: r4830
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/script_v1.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/script_v1.cpp b/scumm/script_v1.cpp index 2bc3ba3ef8..3fd4f6f3cc 100644 --- a/scumm/script_v1.cpp +++ b/scumm/script_v1.cpp @@ -1380,7 +1380,7 @@ void Scumm::o5_ifState() int b = getVarOrDirectByte(0x40); bool isNegated = _opcode & 0x20; - if (((getState(a) & 0xF0 >> 4) != b) ^ isNegated) + if ((getState(a) != b) ^ isNegated) o5_jumpRelative(); else ignoreScriptWord(); |