diff options
Diffstat (limited to 'src/game/g_active.c')
-rw-r--r-- | src/game/g_active.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game/g_active.c b/src/game/g_active.c index d423ca74..f1d77c97 100644 --- a/src/game/g_active.c +++ b/src/game/g_active.c @@ -549,7 +549,10 @@ void ClientTimerActions( gentity_t *ent, int msec ) if( client->ps.stats[ STAT_PTEAM ] == PTE_ALIENS ) { if( ent->health < client->ps.stats[ STAT_MAX_HEALTH ] ) - ent->health++; + BG_FindRegenRateForClass( client->ps.stats[ STAT_PCLASS ] ); + + if( ent->health > client->ps.stats[ STAT_MAX_HEALTH ] ) + ent->health = client->ps.stats[ STAT_MAX_HEALTH ]; } } } |