Skip to content

Commit

Permalink
- check VISALWAYSFAIL against SF_IGNOREVISIBILITY
Browse files Browse the repository at this point in the history
  • Loading branch information
madame-rachelle committed Feb 15, 2023
1 parent 45f67bd commit ee18123
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/playsim/p_sight.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit ee18123

Please sign in to comment.