From a2117f122609669ac14e4ed4fa7b6bca35db15c3 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Sun, 26 Apr 2020 15:01:39 +0200 Subject: Don't allow storing LC charge indefinitely --- src/game/g_weapon.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/game/g_weapon.c') diff --git a/src/game/g_weapon.c b/src/game/g_weapon.c index 123ac0d..a46c03e 100644 --- a/src/game/g_weapon.c +++ b/src/game/g_weapon.c @@ -80,6 +80,10 @@ void G_ForceWeaponChange( gentity_t *ent, weapon_t weapon ) // force this here to prevent flamer effect from continuing ent->client->ps.generic1 = WPM_NOTFIRING; + // Reset the Lucifer Cannon charge + if( ent->client->ps.weapon == WP_LUCIFER_CANNON ) + ent->client->ps.stats[ STAT_MISC ] = 0; + ent->client->ps.weapon = ent->client->ps.persistant[ PERS_NEWWEAPON ]; } -- cgit