Cap spindash thrust according to max charge time

This commit is contained in:
Antonio Martinez 2025-08-02 00:06:33 -04:00
parent 1867079623
commit 4f45393c9b

View file

@ -13325,7 +13325,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
/*