diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2020-04-26 15:01:39 +0200 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2020-04-26 19:27:18 +0200 |
commit | a2117f122609669ac14e4ed4fa7b6bca35db15c3 (patch) | |
tree | 79617edca427e03f2da658afe0c279fa400af459 /src/game | |
parent | 2fac8671a2b5919971016bea3382f16f4a76fd2b (diff) |
Don't allow storing LC charge indefinitely
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/g_weapon.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 ]; } |