summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
Diffstat (limited to 'src/game')
-rw-r--r--src/game/g_buildable.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c
index 73ffa110..587a04c9 100644
--- a/src/game/g_buildable.c
+++ b/src/game/g_buildable.c
@@ -1891,6 +1891,10 @@ void HMedistat_Think( gentity_t *self )
for( i = 0; i < num; i++ )
{
player = &g_entities[ entityList[ i ] ];
+
+ //remove poison from everyone, not just the healed player
+ if( player->client && player->client->ps.stats[ STAT_STATE ] & SS_POISONED )
+ player->client->ps.stats[ STAT_STATE ] &= ~SS_POISONED;
if( self->enemy == player && player->client &&
player->client->ps.stats[ STAT_TEAM ] == TEAM_HUMANS &&
@@ -1943,9 +1947,6 @@ void HMedistat_Think( gentity_t *self )
}
else if( self->enemy && self->enemy->client ) //heal!
{
- if( self->enemy->client->ps.stats[ STAT_STATE ] & SS_POISONED )
- self->enemy->client->ps.stats[ STAT_STATE ] &= ~SS_POISONED;
-
if( self->enemy->client->ps.stats[ STAT_STAMINA ] < MAX_STAMINA )
self->enemy->client->ps.stats[ STAT_STAMINA ] += STAMINA_MEDISTAT_RESTORE;