From 7f984114f2e19b0579e1d55e3c1a8925a88c35d0 Mon Sep 17 00:00:00 2001 From: PaweÅ‚ Redman Date: Fri, 3 Apr 2015 18:07:22 +0200 Subject: Do not display health bars on cloaked players. --- src/cgame/cg_draw.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/cgame/cg_draw.c b/src/cgame/cg_draw.c index e351b70..2c6645f 100644 --- a/src/cgame/cg_draw.c +++ b/src/cgame/cg_draw.c @@ -4003,7 +4003,7 @@ static void CG_DrawHealthBars( void ) cent = cg_entities + cg.snap->entities[ i ].number; es = ¢->currentState; - if( es->eFlags & EF_DEAD ) + if( es->eFlags & ( EF_DEAD | EF_NODRAW ) ) continue; switch( es->eType ) @@ -4018,6 +4018,9 @@ static void CG_DrawHealthBars( void ) break; case ET_PLAYER: + if( es->eFlags & EF_MOVER_STOP ) // cloak + continue; + bar->value = es->otherEntityNum2; bar->max = BG_Class( ( es->misc >> 8 ) & 0xFF )->health; BG_ClassBoundingBox( ( es->misc >> 8 ) & 0xFF, mins, maxs, NULL, NULL, NULL ); -- cgit