mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +00:00
- fixed handling for OkayToSwitchTarget.
This commit is contained in:
parent
ac95cba848
commit
fd9dc9e3f4
1 changed files with 2 additions and 2 deletions
|
@ -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;;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue