From 0a453db80d3f7cef4ecc9d96b728222a809c5257 Mon Sep 17 00:00:00 2001 From: NepDisk Date: Sat, 24 May 2025 20:37:09 -0400 Subject: [PATCH] Readd extra bouncyfloor feature for binary backwards compat --- src/p_user.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/p_user.c b/src/p_user.c index 60c756648..117e01a81 100644 --- a/src/p_user.c +++ b/src/p_user.c @@ -1616,6 +1616,17 @@ static void P_CheckBouncySectors(player_t *player) if (abs(momentum.z) < (rover->bouncestrength*2)) goto bouncydone; + if ((mapnamespace == MNS_SRB2KART) && !(rover->master->flags & ML_NOTBOUNCY)) + { + if (momentum.z > 0) + { + if (momentum.z < 8*FRACUNIT) + momentum.z = 8*FRACUNIT; + } + else if (momentum.z > -8*FRACUNIT && momentum.z != 0) + momentum.z = -8*FRACUNIT; + } + if (momentum.z > FixedMul(24*FRACUNIT, player->mo->scale)) //half of the default player height momentum.z = FixedMul(24*FRACUNIT, player->mo->scale); else if (momentum.z < -FixedMul(24*FRACUNIT, player->mo->scale))