From 94ea4e06143c7142c2fc917499cff68cce63a5da Mon Sep 17 00:00:00 2001 From: yamamama Date: Wed, 24 Dec 2025 22:28:49 -0500 Subject: [PATCH] Forgot about goddamn pogosprings --- src/k_kart.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/k_kart.c b/src/k_kart.c index b0d67bd43..62b43bbf2 100644 --- a/src/k_kart.c +++ b/src/k_kart.c @@ -4891,7 +4891,18 @@ void K_DoSneaker(player_t *player, INT32 type) void K_DoPogoSpring(mobj_t *mo, fixed_t vertispeed, UINT8 sound) { - const fixed_t vscale = mapobjectscale + (mo->scale - mapobjectscale); + fixed_t objscale = mo->scale; + + if (mo->player) + { + // For smaller players: fudge the scale calculation by adding a minimum scale. + // In certain cases, the game will pretend they're bigger than they actually are, + // so the game handles springs as such. + // Alt. Shrink *especially* needs this change! + objscale = max(mo->scale, mapobjectscale); + } + + const fixed_t vscale = mapobjectscale + (objscale - mapobjectscale); if (mo->player && mo->player->spectator) return;