mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Cap spindash thrust according to max charge time
This commit is contained in:
parent
1867079623
commit
4f45393c9b
1 changed files with 1 additions and 1 deletions
|
|
@ -13325,7 +13325,7 @@ static void K_KartSpindash(player_t *player)
|
||||||
// if spindash was charged enough, give a small thrust.
|
// if spindash was charged enough, give a small thrust.
|
||||||
if (player->spindash >= SPINDASHTHRUSTTIME)
|
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
|
// Old behavior, before emergency zero-ring spindash
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue