simplified code (thanks to MadMoose for pointing this out)

svn-id: r4830
This commit is contained in:
Max Horn 2002-08-24 21:32:24 +00:00
parent 901b4a07a6
commit 054f1fa69b

View File

@ -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();