From e347fadf0219c17c963f752c4d1470a21d5a8db9 Mon Sep 17 00:00:00 2001 From: Sally Coolatta Date: Wed, 21 Sep 2022 07:49:33 -0400 Subject: [PATCH] Add a fudge constant to the stumble indicator --- src/k_kart.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/k_kart.c b/src/k_kart.c index 513fe6c7f..39366c64d 100644 --- a/src/k_kart.c +++ b/src/k_kart.c @@ -3925,6 +3925,7 @@ void K_InitStumbleIndicator(player_t *player) void K_UpdateStumbleIndicator(player_t *player) { + const angle_t fudge = ANG10; mobj_t *mobj = NULL; boolean air = false; @@ -3956,7 +3957,7 @@ void K_UpdateStumbleIndicator(player_t *player) P_MoveOrigin(mobj, player->mo->x, player->mo->y, player->mo->z + (player->mo->height / 2)); air = !P_IsObjectOnGround(player->mo); - steepVal = air ? STUMBLE_STEEP_VAL_AIR : STUMBLE_STEEP_VAL; + steepVal = (air ? STUMBLE_STEEP_VAL_AIR : STUMBLE_STEEP_VAL) - fudge; slopeSteep = max(AngleDelta(player->mo->pitch, 0), AngleDelta(player->mo->roll, 0)); delta = 0;