From 506631c235e368112f59d61e671b44371744b6a8 Mon Sep 17 00:00:00 2001 From: Wumbo <58399748+WumboSpasm@users.noreply.github.com> Date: Sun, 5 Oct 2025 22:45:42 -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 29e2ed1a1..714f72fdb 100644 --- a/src/k_follower.c +++ b/src/k_follower.c @@ -410,10 +410,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) {