diff options
Diffstat (limited to 'src/game/g_buildable.c')
-rw-r--r-- | src/game/g_buildable.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c index 46630229..33c1ca96 100644 --- a/src/game/g_buildable.c +++ b/src/game/g_buildable.c @@ -2475,8 +2475,14 @@ void G_BuildableThink( gentity_t *ent, int msec ) } } - if( ent->health > bHealth ) + if( ent->health >= bHealth ) + { + int i; ent->health = bHealth; + for( i = 0; i < MAX_CLIENTS; i++ ) + ent->credits[ i ] = 0; + } + } if( ent->lev1Grabbed && ent->lev1GrabTime + LEVEL1_GRAB_TIME < level.time ) |