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.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game/g_combat.c b/src/game/g_combat.c
index fcdc2ee2..6cb06309 100644
--- a/src/game/g_combat.c
+++ b/src/game/g_combat.c
@@ -419,6 +419,8 @@ void player_die( gentity_t *self, gentity_t *inflictor, gentity_t *attacker, int
}
trap_LinkEntity( self );
+
+ self->client->pers.infoChangeTime = level.time;
}
/*
@@ -1139,7 +1141,10 @@ void G_Damage( gentity_t *targ, gentity_t *inflictor, gentity_t *attacker,
targ->health = targ->health - take;
if( targ->client )
+ {
targ->client->ps.stats[ STAT_HEALTH ] = targ->health;
+ targ->client->pers.infoChangeTime = level.time;
+ }
targ->lastDamageTime = level.time;
targ->nextRegenTime = level.time + ALIEN_REGEN_DAMAGE_TIME;