From 0c991e8434399cffcfeba60a8b948cfc80bcaa3d Mon Sep 17 00:00:00 2001 From: James R Date: Sat, 23 Dec 2023 12:13:46 -0800 Subject: [PATCH] Fix Z calculation for FOF activators Boundsec needs to be the target sector, not the control sector. --- src/p_spec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/p_spec.c b/src/p_spec.c index 55d0bcf48..d11810b11 100644 --- a/src/p_spec.c +++ b/src/p_spec.c @@ -5710,8 +5710,8 @@ static void P_CheckMobj3DFloorAction(mobj_t *mo, sector_t *sec, boolean continuo continue; } - top = P_GetSpecialTopZ(mo, roversec, roversec); - bottom = P_GetSpecialBottomZ(mo, roversec, roversec); + top = P_GetSpecialTopZ(mo, roversec, sec); + bottom = P_GetSpecialBottomZ(mo, roversec, sec); mid = bottom + ((top - bottom) / 2); if (mo->z > top || mo->z + mo->height < bottom)