From 798ec438387193c4cf928ab36b59e982b194cf7a Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Mon, 18 Oct 2004 17:31:16 +0000 Subject: * Bug fixes to the bug fixes to the bug fixes to frag sharing * p.s. It's really hard to test! --- src/game/g_combat.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/game/g_combat.c b/src/game/g_combat.c index 160bac49..1e962965 100644 --- a/src/game/g_combat.c +++ b/src/game/g_combat.c @@ -261,7 +261,10 @@ void player_die( gentity_t *self, gentity_t *inflictor, gentity_t *attacker, int { player = g_entities + i; - if( player->client && player->client->ps.stats[ STAT_PTEAM ] == PTE_HUMANS ) + if( !player->client ) + continue; + + if( player->client->ps.stats[ STAT_PTEAM ] != PTE_HUMANS ) continue; if( !self->credits[ i ] ) @@ -283,7 +286,10 @@ void player_die( gentity_t *self, gentity_t *inflictor, gentity_t *attacker, int { player = g_entities + i; - if( player->client && player->client->ps.stats[ STAT_PTEAM ] == PTE_ALIENS ) + if( !player->client ) + continue; + + if( player->client->ps.stats[ STAT_PTEAM ] != PTE_ALIENS ) continue; //this client did no damage -- cgit