summaryrefslogtreecommitdiff
path: root/src/game/g_combat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_combat.c')
-rw-r--r--src/game/g_combat.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/g_combat.c b/src/game/g_combat.c
index 29a1af3d..d7f15806 100644
--- a/src/game/g_combat.c
+++ b/src/game/g_combat.c
@@ -1160,7 +1160,11 @@ void G_Damage( gentity_t *targ, gentity_t *inflictor, gentity_t *attacker,
targ->flags |= FL_NO_KNOCKBACK;
if( targ->health < -999 )
+ {
targ->health = -999;
+ if( targ->client )
+ targ->client->ps.stats[ STAT_HEALTH ] = -999;
+ }
targ->enemy = attacker;
targ->die( targ, inflictor, attacker, take, mod );