Cap dashspeed to at least mindash before revving.

This commit is contained in:
GoldenTails 2019-12-23 14:01:37 -06:00
parent 6fc325f3d2
commit a5a8d0c77b

View file

@ -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)