- fixed handling for OkayToSwitchTarget.

This commit is contained in:
Christoph Oelckers 2017-03-19 12:07:02 +01:00
parent ac95cba848
commit fd9dc9e3f4
1 changed files with 2 additions and 2 deletions

View File

@ -1551,7 +1551,7 @@ dopain:
target->SetState (target->SeeState);
}
}
else if (source != target->target && target->OkayToSwitchTarget (source))
else if (source != target->target && target->CallOkayToSwitchTarget (source))
{
// Target actor is not intent on another actor,
// so make him chase after source
@ -1765,7 +1765,7 @@ bool AActor::CallOkayToSwitchTarget(AActor *other)
GlobalVMStack.Call(func, params, 2, &ret, 1);
return !!retv;
}
return false;
return OkayToSwitchTarget(other;;
}