mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Don't allow spindash above max power
This commit is contained in:
parent
d631f62da9
commit
ba0a40c1b1
1 changed files with 1 additions and 1 deletions
|
|
@ -11364,7 +11364,7 @@ static void K_KartSpindash(player_t *player)
|
|||
|
||||
if (player->spindash > 0 && (buttons & (BT_DRIFT|BT_BRAKE|BT_ACCELERATE)) != (BT_DRIFT|BT_BRAKE|BT_ACCELERATE))
|
||||
{
|
||||
player->spindashspeed = (player->spindash * FRACUNIT) / MAXCHARGETIME;
|
||||
player->spindashspeed = (min(player->spindash, MAXCHARGETIME) * FRACUNIT) / MAXCHARGETIME;
|
||||
player->spindashboost = TICRATE;
|
||||
|
||||
// if spindash was charged enough, give a small thrust.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue