SAGA2: Fix protagonist check in ObjectSensor::check

This commit is contained in:
a/ 2021-08-13 21:19:55 +09:00
parent d00c5d1c36
commit 5001268e3b

View File

@ -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