- fixed handling for OkayToSwitchTarget.

This commit is contained in:
Christoph Oelckers 2017-03-19 12:07:02 +01:00
parent ac95cba848
commit fd9dc9e3f4

View file

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