From 96bede71e66823dc28a57935e48e4cc7b17f55af Mon Sep 17 00:00:00 2001 From: enneract Date: Thu, 8 Jan 2015 00:42:15 +0100 Subject: Fix various linking errors and segfaults. --- src/game/g_team.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'src/game/g_team.c') diff --git a/src/game/g_team.c b/src/game/g_team.c index 246c072..fd62600 100644 --- a/src/game/g_team.c +++ b/src/game/g_team.c @@ -206,6 +206,11 @@ void G_LeaveTeamReal( gentity_t *self, qboolean reset_score ) if( ent->client->ps.stats[ STAT_STATE ] & SS_POISONED && ent->client->lastPoisonClient == self ) ent->client->ps.stats[ STAT_STATE ] &= ~SS_POISONED; + + // cure infection + if( ent->client->ps.stats[ STAT_STATE ] & SS_INFECTED && + ent->client->lastInfectionClient == self ) + ent->client->ps.stats[ STAT_STATE ] &= ~SS_INFECTED; } else if( ent->s.eType == ET_MISSILE && ent->r.ownerNum == self->s.number ) G_FreeEntity( ent ); @@ -213,14 +218,6 @@ void G_LeaveTeamReal( gentity_t *self, qboolean reset_score ) // cut all relevant zap beams G_ClearPlayerZapEffects( self ); - - // cure infection - if( ent->client->ps.stats[ STAT_STATE ] & SS_INFECTED && - ent->client->lastInfectionClient == self ) - ent->client->ps.stats[ STAT_STATE ] &= ~SS_INFECTED; - - else if( ent->s.eType == ET_MISSILE && ent->r.ownerNum == self->s.number ) - G_FreeEntity( ent ); G_namelog_update_score( self->client ); -- cgit