summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cgame/cg_draw.c5
1 files changed, 4 insertions, 1 deletions
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 = &cent->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 );