summaryrefslogtreecommitdiff
path: root/src/game/g_active.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_active.c')
-rw-r--r--src/game/g_active.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/game/g_active.c b/src/game/g_active.c
index 5adfa847..edd57a6a 100644
--- a/src/game/g_active.c
+++ b/src/game/g_active.c
@@ -1845,7 +1845,11 @@ void ClientEndFrame( gentity_t *ent )
else
ent->s.eFlags &= ~EF_CONNECTION;
- ent->client->ps.stats[ STAT_HEALTH ] = ent->health; // FIXME: get rid of ent->health...
+ if( ent->client->ps.stats[ STAT_HEALTH ] != ent->health )
+ {
+ ent->client->ps.stats[ STAT_HEALTH ] = ent->health; // FIXME: get rid of ent->health...
+ ent->client->pers.infoChangeTime = level.time;
+ }
// respawn if dead
if( ent->client->ps.stats[ STAT_HEALTH ] <= 0 && level.time >= ent->client->respawnTime )