From 9a3d84421ff10ada947dac98376381bb863db12b Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Sun, 18 Jun 2006 16:35:33 +0000 Subject: * Removed redundant grenade code --- src/game/g_active.c | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'src/game/g_active.c') diff --git a/src/game/g_active.c b/src/game/g_active.c index 299ca9f9..73c42b99 100644 --- a/src/game/g_active.c +++ b/src/game/g_active.c @@ -865,34 +865,6 @@ void ClientEvents( gentity_t *ent, int oldEventSequence ) break; case EV_NOAMMO: - //if we just ran out of grenades, remove the inventory item - if( ent->s.weapon == WP_GRENADE ) - { - int j; - - BG_RemoveWeaponFromInventory( ent->s.weapon, ent->client->ps.stats ); - - //switch to the first non blaster weapon - for( j = WP_NONE + 1; j < WP_NUM_WEAPONS; j++ ) - { - if( j == WP_BLASTER ) - continue; - - if( BG_InventoryContainsWeapon( j, ent->client->ps.stats ) ) - { - G_ForceWeaponChange( ent, j ); - break; - } - } - - //only got the blaster to switch to - if( j == WP_NUM_WEAPONS ) - G_ForceWeaponChange( ent, WP_BLASTER ); - - //update ClientInfo - ClientUserinfoChanged( ent->client->ps.clientNum ); - } - break; default: -- cgit