summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
Diffstat (limited to 'src/game')
-rw-r--r--src/game/g_combat.c10
1 files changed, 8 insertions, 2 deletions
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