From cb278c3c6dd2f0b7e0431135cededcd155eb61a1 Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Sat, 4 Sep 2010 14:26:52 +0300 Subject: [PATCH] Move another check while I'm at it --- data/qcsrc/client/sbar.qc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/data/qcsrc/client/sbar.qc b/data/qcsrc/client/sbar.qc index c65579a5..7a3b08cd 100644 --- a/data/qcsrc/client/sbar.qc +++ b/data/qcsrc/client/sbar.qc @@ -978,13 +978,11 @@ void Sbar_PrintStomachboardItem(vector pos, entity pl) } if(field == ST_HEALTH) - if(stof(str)) { // only if player health is not 0 + if(g_vore_showpreyhealth && stof(str)) { // only if player health is not 0 pos_x += 138; - if(g_vore_showpreyhealth) drawpic(pos, "gfx/hud/sb_health", '11 11 0', '1 1 1', sbar_alpha_fg, DRAWFLAG_NORMAL); pos_x += 9; - if(g_vore_showpreyhealth) drawcolorcodedstring(pos, str, '11 11 0', sbar_alpha_fg, DRAWFLAG_NORMAL); } } -- 2.39.2