- rename the flags MNOTVISIBLE and VISALWAYSFAIL to MINVISIBLE and MVISBLOCKED respectively, to reflect what they really do
This commit is contained in:
parent
ee18123f01
commit
4475240da8
5 changed files with 9 additions and 9 deletions
|
|
@ -1252,7 +1252,7 @@ int P_IsVisible(AActor *lookee, AActor *other, INTBOOL allaround, FLookExParams
|
|||
double mindist;
|
||||
DAngle fov;
|
||||
|
||||
if (other == nullptr || (other->flags8 & MF8_VISALWAYSFAIL))
|
||||
if (other == nullptr || (other->flags8 & MF8_MVISBLOCKED))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
@ -2344,7 +2344,7 @@ void A_DoChase (AActor *actor, bool fastchase, FState *meleestate, FState *missi
|
|||
|
||||
// [RH] Don't chase invisible targets
|
||||
if (actor->target != NULL &&
|
||||
((actor->target->renderflags & RF_INVISIBLE) || (actor->target->flags8 & MF8_MNOTVISIBLE)) &&
|
||||
((actor->target->renderflags & RF_INVISIBLE) || (actor->target->flags8 & MF8_MINVISIBLE)) &&
|
||||
actor->target != actor->goal)
|
||||
{
|
||||
actor->target = nullptr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue