mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-03-07 20:01:21 +00:00
Also cap dashspeed to at most maxdash.
This commit is contained in:
parent
39321e8637
commit
edd6f743ec
1 changed files with 4 additions and 0 deletions
|
|
@ -4637,6 +4637,10 @@ static void P_DoSpinAbility(player_t *player, ticcmd_t *cmd)
|
|||
}
|
||||
if (player->dashspeed < player->mindash)
|
||||
player->dashspeed = player->mindash;
|
||||
|
||||
if (player->dashspeed < player->maxdash)
|
||||
player->dashspeed = player->maxdash;
|
||||
|
||||
if (player->dashspeed < player->maxdash && player->mindash != player->maxdash)
|
||||
{
|
||||
#define chargecalculation (6*(player->dashspeed - player->mindash))/(player->maxdash - player->mindash)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue