mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 14:51:40 +00:00
Fixed: A_LookEx did not account for the +LOOKALLAROUND flag.
This commit is contained in:
parent
caa4728bd4
commit
e62651e3cf
1 changed files with 2 additions and 2 deletions
|
@ -1271,7 +1271,7 @@ int P_IsVisible(AActor *lookee, AActor *other, INTBOOL allaround, FLookExParams
|
|||
{
|
||||
maxdist = params->maxDist;
|
||||
mindist = params->minDist;
|
||||
fov = params->Fov;
|
||||
fov = allaround ? 0 : params->Fov; // [RK] Account for LOOKALLAROUND flag.
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -2086,7 +2086,7 @@ DEFINE_ACTION_FUNCTION(AActor, A_LookEx)
|
|||
{
|
||||
// If we find a valid target here, the wandering logic should *not*
|
||||
// be activated! If would cause the seestate to be set twice.
|
||||
if (P_LookForPlayers(self, true, ¶ms))
|
||||
if (P_LookForPlayers(self, (self->flags4 & MF4_LOOKALLAROUND), ¶ms)) // [RK] Passing true for allround should only occur if the flag is actually set.
|
||||
goto seeyou;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue