From: MirceaKitsune Date: Sat, 4 Sep 2010 11:26:52 +0000 (+0300) Subject: Move another check while I'm at it X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=cb278c3c6dd2f0b7e0431135cededcd155eb61a1;p=voretournament%2Fvoretournament.git Move another check while I'm at it --- 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); } }