mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-01 14:21:41 +00:00
SAGA2: Fix protagonist check in ObjectSensor::check
This commit is contained in:
parent
d00c5d1c36
commit
5001268e3b
@ -484,13 +484,13 @@ bool ObjectSensor::check(SenseInfo &info, uint32 senseFlags) {
|
||||
getRange() != 0 ? getRange() : kTileUVSize * kPlatformWidth * 8);
|
||||
GameObject *objToTest;
|
||||
iter.first(&objToTest);
|
||||
bool objToTestIsActor = isActor(objToTest);
|
||||
|
||||
for (iter.first(&objToTest);
|
||||
objToTest != NULL;
|
||||
iter.next(&objToTest)) {
|
||||
if (senseFlags & (1 << actorBlind))
|
||||
continue;
|
||||
bool objToTestIsActor = isActor(objToTest);
|
||||
|
||||
// This extra test is a HACK to ensure that the center actor
|
||||
// will be able to sense a protaganist even if the protaganist
|
||||
|
Loading…
x
Reference in New Issue
Block a user