From 9ab47e4be8337219585f59b1c28ec72bc25a5ae1 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Fri, 3 Apr 2015 14:10:06 +0200 Subject: Make health bars invisible if build stats are visible. --- src/cgame/cg_draw.c | 3 +++ 1 file changed, 3 insertions(+) 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 ); -- cgit