summaryrefslogtreecommitdiff
path: root/src/game/g_active.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_active.c')
-rw-r--r--src/game/g_active.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game/g_active.c b/src/game/g_active.c
index 94a8e8c9..4e7134e2 100644
--- a/src/game/g_active.c
+++ b/src/game/g_active.c
@@ -666,8 +666,11 @@ void ClientTimerActions( gentity_t *ent, int msec )
//client is charging up an lcannon
if( client->ps.weapon == WP_LUCIFER_CANNON &&
( ucmd->buttons & BUTTON_ATTACK ) &&
- client->ps.stats[ STAT_MISC2 ] <= 0 )
+ client->ps.stats[ STAT_MISC2 ] <= 0 &&
+ client->ps.weaponstate != WEAPON_NEEDS_RESET )
{
+ int ammo;
+
if( client->ps.stats[ STAT_MISC ] <= 0 )
client->lcannonStartTime = level.time;