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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/g_active.c b/src/game/g_active.c
index 49289ba8..836ae90c 100644
--- a/src/game/g_active.c
+++ b/src/game/g_active.c
@@ -675,7 +675,8 @@ void ClientTimerActions( gentity_t *ent, int msec )
}
}
- if( ent->health < client->ps.stats[ STAT_MAX_HEALTH ] )
+ if( ent->health < client->ps.stats[ STAT_MAX_HEALTH ] &&
+ ( client->lastDamageTime + ALIEN_REGEN_DAMAGE_TIME ) < level.time )
ent->health += BG_FindRegenRateForClass( client->ps.stats[ STAT_PCLASS ] ) * modifier;
if( ent->health > client->ps.stats[ STAT_MAX_HEALTH ] )