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, 2 insertions, 4 deletions
diff --git a/src/game/g_active.c b/src/game/g_active.c
index da2df83..5bee472 100644
--- a/src/game/g_active.c
+++ b/src/game/g_active.c
@@ -953,7 +953,7 @@ void ClientTimerActions( gentity_t *ent, int msec )
( ent->lastDamageTime + ALIEN_REGEN_DAMAGE_TIME ) < level.time )
{
float dist_mod = 1.0f;
- float hadd;
+ int hadd;
if( g_modAlienRegenRange.integer )
{
@@ -974,9 +974,7 @@ void ClientTimerActions( gentity_t *ent, int msec )
}
}
- hadd = (float)(BG_FindRegenRateForClass( client->ps.stats[ STAT_PCLASS ] ) * modifier * dist_mod);
- if( hadd < 1.0 && hadd >= 0.5 )
- hadd = 1.0;
+ hadd = ceil((float)(BG_FindRegenRateForClass( client->ps.stats[ STAT_PCLASS ] ) * modifier * dist_mod));
ent->health += hadd;
// if completely healed, cancel retribution