From ee18123f0183784062b642b8cfff43eff8486366 Mon Sep 17 00:00:00 2001 From: Rachael Alexanderson Date: Wed, 15 Feb 2023 10:47:31 -0500 Subject: [PATCH] - check VISALWAYSFAIL against SF_IGNOREVISIBILITY --- src/playsim/p_sight.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/playsim/p_sight.cpp b/src/playsim/p_sight.cpp index caa5c0f06..9855c6ce7 100644 --- a/src/playsim/p_sight.cpp +++ b/src/playsim/p_sight.cpp @@ -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; }