diff options
Diffstat (limited to 'src/game/g_active.c')
-rw-r--r-- | src/game/g_active.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/game/g_active.c b/src/game/g_active.c index a6d99691..a8888b50 100644 --- a/src/game/g_active.c +++ b/src/game/g_active.c @@ -795,8 +795,14 @@ 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 ] ) + { + int i; ent->health = client->ps.stats[ STAT_MAX_HEALTH ]; + for( i = 0; i < MAX_CLIENTS; i++ ) + ent->credits[ i ] = 0; + } + } // turn off life support when a team admits defeat |