summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2015-04-03 14:10:06 +0200
committerPaweł Redman <pawel.redman@gmail.com>2015-04-03 14:10:06 +0200
commit9ab47e4be8337219585f59b1c28ec72bc25a5ae1 (patch)
tree15b6bd0b2fa5e05fa5ca0d0acb4bbbf08112fe07
parentf639515054b2122c7166793f7c0a0a751087209f (diff)
Make health bars invisible if build stats are visible.
-rw-r--r--src/cgame/cg_draw.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cgame/cg_draw.c b/src/cgame/cg_draw.c
index 64e5ed7..e351b70 100644
--- a/src/cgame/cg_draw.c
+++ b/src/cgame/cg_draw.c
@@ -4009,6 +4009,9 @@ static void CG_DrawHealthBars( void )
switch( es->eType )
{
case ET_BUILDABLE:
+ if( CG_PlayerIsBuilder( es->modelindex ) )
+ continue;
+
bar->value = es->generic1;
bar->max = BG_Buildable( es->modelindex )->health;
BG_BuildableBoundingBox( es->modelindex, mins, maxs );