summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
Diffstat (limited to 'src/game')
-rw-r--r--src/game/bg_pmove.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/game/bg_pmove.c b/src/game/bg_pmove.c
index 70c69809..0322fb1d 100644
--- a/src/game/bg_pmove.c
+++ b/src/game/bg_pmove.c
@@ -2913,6 +2913,11 @@ static void PM_Weapon( void )
// Charging up a Lucifer Cannon
pm->ps->eFlags &= ~EF_WARN_CHARGE;
+
+ // don't allow attack until all buttons are up
+ if( pm->ps->pm_flags & PMF_RESPAWNED )
+ return;
+
if( pm->ps->weapon == WP_LUCIFER_CANNON )
{
// Charging up
@@ -2933,10 +2938,6 @@ static void PM_Weapon( void )
pm->ps->eFlags |= EF_WARN_CHARGE;
}
- // don't allow attack until all buttons are up
- if( pm->ps->pm_flags & PMF_RESPAWNED )
- return;
-
// no bite during pounce
if( ( pm->ps->weapon == WP_ALEVEL3 || pm->ps->weapon == WP_ALEVEL3_UPG )
&& ( pm->cmd.buttons & BUTTON_ATTACK )