mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 07:12:02 +00:00
- fixed some incorrect P_CHeckSight flag use in p_enemy.cpp.
SVN r3115 (trunk)
This commit is contained in:
parent
5e50e15d5e
commit
c22ce824a5
1 changed files with 2 additions and 2 deletions
|
@ -309,7 +309,7 @@ bool P_CheckMissileRange (AActor *actor)
|
||||||
{
|
{
|
||||||
fixed_t dist;
|
fixed_t dist;
|
||||||
|
|
||||||
if (!P_CheckSight (actor, actor->target, SF_SEEPASTBLOCKEVERYTHING|SF_SEEPASTSHOOTABLELINES))
|
if (!P_CheckSight (actor, actor->target, SF_SEEPASTBLOCKEVERYTHING))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (actor->flags & MF_JUSTHIT)
|
if (actor->flags & MF_JUSTHIT)
|
||||||
|
@ -1151,7 +1151,7 @@ bool P_IsVisible(AActor *lookee, AActor *other, INTBOOL allaround, FLookExParams
|
||||||
}
|
}
|
||||||
|
|
||||||
// P_CheckSight is by far the most expensive operation in here so let's do it last.
|
// P_CheckSight is by far the most expensive operation in here so let's do it last.
|
||||||
return P_CheckSight(lookee, other, SF_SEEPASTBLOCKEVERYTHING);
|
return P_CheckSight(lookee, other, SF_SEEPASTSHOOTABLELINES);
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in a new issue