mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-24 03:32:22 +00:00
Cap dashspeed to at least mindash before revving.
This commit is contained in:
parent
6fc325f3d2
commit
a5a8d0c77b
1 changed files with 2 additions and 0 deletions
|
@ -4635,6 +4635,8 @@ static void P_DoSpinAbility(player_t *player, ticcmd_t *cmd)
|
|||
S_StartSound(player->mo, sfx_spin);
|
||||
break;
|
||||
}
|
||||
if (player->dashspeed < player->mindash)
|
||||
player->dashspeed = player->mindash;
|
||||
if (player->dashspeed < player->maxdash && player->mindash != player->maxdash)
|
||||
{
|
||||
#define chargecalculation (6*(player->dashspeed - player->mindash))/(player->maxdash - player->mindash)
|
||||
|
|
Loading…
Reference in a new issue