- check VISALWAYSFAIL against SF_IGNOREVISIBILITY

This commit is contained in:
Rachael Alexanderson 2023-02-15 10:47:31 -05:00
parent 45f67bdd50
commit ee18123f01

View file

@ -849,7 +849,7 @@ int P_CheckSight (AActor *t1, AActor *t2, int flags)
return false;
}
if (t2->flags8 & MF8_VISALWAYSFAIL)
if ((t2->flags8 & MF8_VISALWAYSFAIL) && !(flags & SF_IGNOREVISIBILITY))
{
return false;
}