summaryrefslogtreecommitdiff
path: root/src/game/g_active.c
diff options
context:
space:
mode:
authorMaeJong <mewiceclair@gmail.com>2017-05-14 22:44:56 +0200
committerMaeJong <mewiceclair@gmail.com>2017-05-14 22:44:56 +0200
commit91b6eb4011c55120f6e5700b8086e8d4992f018f (patch)
treebacb521484526b9c24704843bbe3a02d91590eae /src/game/g_active.c
parent0f43c487b1688136b39488aca5df5d2e9ec95fc2 (diff)
Adv. Basilisk healing aura & tyrant regen tweaks
Adv. Basi healing aura now boosts regen x1.5 instead of x2 (rounded up) Tyrant regen lowered from 9 to 8
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