From c2589d9ef12789df8250ab83d08a4b344fbbb2a7 Mon Sep 17 00:00:00 2001 From: Alug Date: Fri, 17 Apr 2026 20:53:16 +0200 Subject: [PATCH] fix offroad oopsie causing desynch ye def not confusing at all to suddenly switch the meaning of floor and ceiling --- src/k_kart.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/k_kart.c b/src/k_kart.c index 6563b20c6..42718372f 100644 --- a/src/k_kart.c +++ b/src/k_kart.c @@ -1694,9 +1694,10 @@ static UINT8 K_CheckOffroadCollide(mobj_t *mo) checkfloor = (s2->flags & SF_FLIPSPECIAL_FLOOR); checkceiling = (s2->flags & SF_FLIPSPECIAL_CEILING); - if (checkfloor) - flr = P_GetFOFBottomZ(mo, s, rover, mo->x, mo->y, NULL); + // def not confusing at all..... if (checkceiling) + flr = P_GetFOFBottomZ(mo, s, rover, mo->x, mo->y, NULL); + if (checkfloor) cel = P_GetFOFTopZ(mo, s, rover, mo->x, mo->y, NULL); // Z coords for fof top/bottom. // we will do essentially the same checks as above instead of bothering with top/bottom height of the FOF.