From 7d6289817da9d284cb90dc7ca7909b27b4b5b776 Mon Sep 17 00:00:00 2001 From: Wumbo <58399748+WumboSpasm@users.noreply.github.com> Date: Mon, 6 Oct 2025 11:43:59 -0400 Subject: [PATCH] Fix ground followers phasing through FOFs --- src/k_follower.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/k_follower.c b/src/k_follower.c index 74d52d6aa..232e509e3 100644 --- a/src/k_follower.c +++ b/src/k_follower.c @@ -477,10 +477,8 @@ void K_HandleFollower(player_t *player) if (fl->mode == FOLLOWERMODE_GROUND) { - sector_t *sec = R_PointInSubsector(sx, sy)->sector; - - fh = min(fh, P_GetFloorZ(player->follower, sec, sx, sy, NULL)); - ch = max(ch, P_GetCeilingZ(player->follower, sec, sx, sy, NULL) - ourheight); + fh = min(fh, P_FloorzAtPos(sx, sy, player->follower->z, ourheight)); + ch = max(ch, P_CeilingzAtPos(sx, sy, player->follower->z, ourheight) - ourheight); if (P_IsObjectOnGround(player->mo) == false) {