From 625e9f2525dfb6c5149244cc03e9178dab83baee Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 26 Jan 2019 12:22:02 +0100 Subject: [PATCH] - the sector variables are still needed. --- src/p_sight.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/p_sight.cpp b/src/p_sight.cpp index 376651a6e..fd85a9a08 100644 --- a/src/p_sight.cpp +++ b/src/p_sight.cpp @@ -852,10 +852,12 @@ int P_CheckSight (AActor *t1, AActor *t2, int flags) return false; } + auto s1 = t1->Sector; + auto s2 = t2->Sector; // // check for trivial rejection // - if (!level.CheckReject(t1->Sector, t2->Sector)) + if (!level.CheckReject(s1, s2)) { sightcounts[0]++; res = false; // can't possibly be connected