summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/g_active.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/game/g_active.c b/src/game/g_active.c
index a3ddecd5..8d281f1b 100644
--- a/src/game/g_active.c
+++ b/src/game/g_active.c
@@ -859,6 +859,18 @@ void ClientThink_real( gentity_t *ent ) {
else
client->ps.gravity = g_gravity.value;
+ if( BG_gotItem( UP_ANTITOXIN, client->ps.stats ) &&
+ BG_activated( UP_ANTITOXIN, client->ps.stats ) )
+ {
+ if( client->ps.stats[ STAT_STATE ] & SS_POISONED )
+ {
+ //remove anti toxin
+ BG_removeItem( UP_ANTITOXIN, client->ps.stats );
+
+ client->ps.stats[ STAT_STATE ] &= ~SS_POISONED;
+ }
+ }
+
// set speed
client->ps.speed = g_speed.value * BG_FindSpeedForClass( client->ps.stats[ STAT_PCLASS ] );