The dashmode struct variable now has a cap, per a Wolfs request.

This commit is contained in:
toasterbabe 2016-07-07 01:40:28 +01:00
parent 64ef2798a2
commit c5ca1a8f24
1 changed files with 14 additions and 12 deletions

View File

@ -9201,6 +9201,8 @@ void P_PlayerThink(player_t *player)
player->jumpfactor = player->jumpfactor + 1*FRACUNIT/300;
}
dashmode = min(dashmode, 3*TICRATE + 3);
if (player->normalspeed >= skins[player->skin].actionspd)
{
mobj_t *ghost = P_SpawnGhostMobj(player->mo); // Spawns afterimages