From de13b600bf3cbfef49e6ff556e2842bd2d0fd787 Mon Sep 17 00:00:00 2001 From: Arthur <spaddlewit@gmail.com> Date: Tue, 20 Feb 2024 21:42:23 -0500 Subject: [PATCH] R_IsPointInSector is fine, it was the clang issue screwing up --- src/p_mobj.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/p_mobj.c b/src/p_mobj.c index 5e0e3cfe99..c15ac66784 100644 --- a/src/p_mobj.c +++ b/src/p_mobj.c @@ -1120,10 +1120,7 @@ fixed_t P_MobjFloorZ(sector_t *sector, sector_t *boundsec, fixed_t x, fixed_t y, testy += y; // If the highest point is in the sector, then we have it easy! Just get the Z at that point -// if (R_IsPointInSector(boundsec ? boundsec : sector, testx, testy)) -// return P_GetSlopeZAt(slope, testx, testy); - - if (R_PointInSubsector(testx, testy)->sector == (boundsec ? boundsec : sector)) // Faster + if (R_IsPointInSector(boundsec ? boundsec : sector, testx, testy)) return P_GetSlopeZAt(slope, testx, testy); // If boundsec is set, we're looking for specials. In that case, iterate over every line in this sector to find the TRUE highest/lowest point @@ -1199,10 +1196,7 @@ fixed_t P_MobjCeilingZ(sector_t *sector, sector_t *boundsec, fixed_t x, fixed_t testy += y; // If the highest point is in the sector, then we have it easy! Just get the Z at that point -// if (R_IsPointInSector(boundsec ? boundsec : sector, testx, testy)) -// return P_GetSlopeZAt(slope, testx, testy); - - if (R_PointInSubsector(testx, testy)->sector == (boundsec ? boundsec : sector)) // Faster + if (R_IsPointInSector(boundsec ? boundsec : sector, testx, testy)) return P_GetSlopeZAt(slope, testx, testy); // If boundsec is set, we're looking for specials. In that case, iterate over every line in this sector to find the TRUE highest/lowest point -- GitLab