summaryrefslogtreecommitdiff
path: root/src/game/g_team.c
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2015-06-22 16:18:38 +0200
committerPaweł Redman <pawel.redman@gmail.com>2015-06-22 16:18:38 +0200
commit6aa69fe49ab81eb128471265c0329c24a27a3ae4 (patch)
tree6a4e9b1132026db7751a988df2f935b33ddb28b3 /src/game/g_team.c
parentef1dd29cd38abd1f2c008bdd32ca767620613895 (diff)
Remove poison.
Diffstat (limited to 'src/game/g_team.c')
-rw-r--r--src/game/g_team.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/game/g_team.c b/src/game/g_team.c
index 81e2e0e..f92936f 100644
--- a/src/game/g_team.c
+++ b/src/game/g_team.c
@@ -200,14 +200,7 @@ void G_LeaveTeamReal( gentity_t *self, qboolean reset_score )
if( !ent->inuse )
continue;
- if( ent->client && ent->client->pers.connected == CON_CONNECTED )
- {
- // cure poison
- if( ent->client->ps.stats[ STAT_STATE ] & SS_POISONED &&
- ent->client->lastPoisonClient == self )
- ent->client->ps.stats[ STAT_STATE ] &= ~SS_POISONED;
- }
- else if( ent->s.eType == ET_MISSILE && ent->r.ownerNum == self->s.number )
+ if( ent->s.eType == ET_MISSILE && ent->r.ownerNum == self->s.number )
G_FreeEntity( ent );
}