Merge branch 'cap-spindash-thrust' into 'master'

Cap spindash thrust according to max charge time

See merge request kart-krew-dev/ring-racers-internal!2717
This commit is contained in:
Oni VelocitOni 2025-08-03 04:53:51 +00:00
commit 07e7c00fb5

View file

@ -13329,7 +13329,7 @@ static void K_KartSpindash(player_t *player)
// if spindash was charged enough, give a small thrust.
if (player->spindash >= SPINDASHTHRUSTTIME)
{
fixed_t thrust = FixedMul(player->mo->scale, player->spindash*FRACUNIT/5);
fixed_t thrust = FixedMul(player->mo->scale, min(player->spindash, MAXCHARGETIME)*FRACUNIT/5);
// Old behavior, before emergency zero-ring spindash
/*