aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorTravis Howell2005-03-06 04:26:24 +0000
committerTravis Howell2005-03-06 04:26:24 +0000
commit524d3310c45e2209eb8a2fbf802103fea5e3efa8 (patch)
tree50e8d592e88c32e858760dfe06bc44a7bdcae167 /scumm
parent0f179d1f0a58b82732e3c8ad24849416db423310 (diff)
downloadscummvm-rg350-524d3310c45e2209eb8a2fbf802103fea5e3efa8.tar.gz
scummvm-rg350-524d3310c45e2209eb8a2fbf802103fea5e3efa8.tar.bz2
scummvm-rg350-524d3310c45e2209eb8a2fbf802103fea5e3efa8.zip
Ooops, reversed that.
svn-id: r16998
Diffstat (limited to 'scumm')
-rw-r--r--scumm/sprite_he.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/scumm/sprite_he.cpp b/scumm/sprite_he.cpp
index 50930541f4..b383fbfdcf 100644
--- a/scumm/sprite_he.cpp
+++ b/scumm/sprite_he.cpp
@@ -55,10 +55,10 @@ int ScummEngine_v90he::findSpriteWithClassOf(int x, int y, int spriteGroupId, in
classId &= 0x7F;
checkRange(32, 1, classId, "class %d out of range in statement");
if (code & 0x80) {
- if ((spi->class_flags & (1 << classId)))
+ if (!(spi->class_flags & (1 << classId)))
continue;
} else {
- if (!(spi->class_flags & (1 << classId)))
+ if ((spi->class_flags & (1 << classId)))
continue;
}
}
@@ -164,10 +164,10 @@ int ScummEngine_v90he::spriteInfoGet_classFlagsAnd(int spriteId, int num, int *a
classId &= 0x7F;
checkRange(32, 1, classId, "class %d out of range in statement");
if (code & 0x80) {
- if ((_spriteTable[spriteId].class_flags & (1 << classId)))
+ if (!(_spriteTable[spriteId].class_flags & (1 << classId)))
return 0;
} else {
- if (!(_spriteTable[spriteId].class_flags & (1 << classId)))
+ if ((_spriteTable[spriteId].class_flags & (1 << classId)))
return 0;
}
}