]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Move another check while I'm at it
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 4 Sep 2010 11:26:52 +0000 (14:26 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 4 Sep 2010 11:26:52 +0000 (14:26 +0300)
data/qcsrc/client/sbar.qc

index c65579a5944aa5512d25852094a3cc2e95aeee69..7a3b08cd87494b40cdbd7b9a318f0a90d33cb363 100644 (file)
@@ -978,13 +978,11 @@ void Sbar_PrintStomachboardItem(vector pos, entity pl)
                }\r
 \r
                if(field == ST_HEALTH)\r
-               if(stof(str)) { // only if player health is not 0\r
+               if(g_vore_showpreyhealth && stof(str)) { // only if player health is not 0\r
                        pos_x += 138;\r
-                       if(g_vore_showpreyhealth)\r
                                drawpic(pos, "gfx/hud/sb_health", '11 11 0', '1 1 1', sbar_alpha_fg, DRAWFLAG_NORMAL);\r
 \r
                        pos_x += 9;\r
-                       if(g_vore_showpreyhealth)\r
                                drawcolorcodedstring(pos, str, '11 11 0', sbar_alpha_fg, DRAWFLAG_NORMAL);\r
                }\r
        }\r