- So we did end up restoring the variable that the last commit was compensating for.

This commit is contained in:
Braden Obrzut 2014-01-04 00:37:15 -05:00
parent 4770b9b27b
commit b0f40c0733
1 changed files with 2 additions and 3 deletions

View File

@ -263,15 +263,14 @@ void FMugShot::Tick(player_t *player)
CurrentState = NULL;
}
}
if ((player->cmd.ucmd.buttons & (BT_ATTACK|BT_ALTATTACK)) && !(player->cheats & (CF_FROZEN | CF_TOTALLYFROZEN)) && player->ReadyWeapon)
if (player->attackdown && !(player->cheats & (CF_FROZEN | CF_TOTALLYFROZEN)) && player->ReadyWeapon)
{
if (RampageTimer != ST_RAMPAGEDELAY)
{
RampageTimer++;
}
}
// Only reset the rampage timer if the weapon becomes ready to fire.
else if((player->WeaponState & (WF_WEAPONREADY|WF_WEAPONREADYALT)))
else
{
RampageTimer = 0;
}