mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 05:51:20 +00:00
- So we did end up restoring the variable that the last commit was compensating for.
This commit is contained in:
parent
4770b9b27b
commit
b0f40c0733
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue