From b321f89d78f2b36ac3827ed36a38d98023aae8a2 Mon Sep 17 00:00:00 2001 From: Alug Date: Mon, 15 Jun 2026 14:53:20 +0200 Subject: [PATCH] move this back might change behavior of this, which may desynch in rare cases --- src/p_sight.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/p_sight.c b/src/p_sight.c index 73c98f8f3..3eb4788b0 100644 --- a/src/p_sight.c +++ b/src/p_sight.c @@ -432,11 +432,6 @@ boolean P_CheckSight2(mobj_t *t1, mobj_t *t2, boolean fast) continue; } - if (rover->flags & FF_SOLID) - { - continue; // shortcut since neither mobj can be inside the 3dfloor - } - // Check for blocking floors here. topz2 = P_GetFFloorTopZAt (rover, t2->x, t2->y); @@ -457,6 +452,11 @@ boolean P_CheckSight2(mobj_t *t1, mobj_t *t2, boolean fast) return false; } + if (rover->flags & FF_SOLID) + { + continue; // shortcut since neither mobj can be inside the 3dfloor + } + if (rover->flags & FF_BOTHPLANES || !(rover->flags & FF_INVERTPLANES)) { if (los.sightzstart >= topz1 && t2->z + t2->height < topz2)