]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Don't show the health of our predator. At least for now... not sure if this should...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 4 Sep 2010 11:20:48 +0000 (14:20 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 4 Sep 2010 11:20:48 +0000 (14:20 +0300)
data/qcsrc/client/sbar.qc

index 2ef328c0d6c67f98368e40b3d5e98e8cd678e6c4..6cc7ec2adf94ba003a05046e79f379d64a119a1f 100644 (file)
@@ -947,7 +947,7 @@ void Sbar_PrintScoreboardItem(vector pos, entity pl, float is_self, float pl_num
 }\r
 \r
 float fieldcounter;\r
-void Sbar_PrintStomachboardItem(vector pos, entity pl)\r
+void Sbar_PrintStomachboardItem(vector pos, entity pl, float showhealth)\r
 {\r
        vector tmp, rgb;\r
        rgb = GetTeamRGB(pl.team);\r
@@ -977,6 +977,7 @@ void Sbar_PrintStomachboardItem(vector pos, entity pl)
                        drawcolorcodedstring(pos, str, '11 11 0', sbar_alpha_fg, DRAWFLAG_NORMAL);\r
                }\r
 \r
+               if(showhealth)\r
                if(field == ST_HEALTH) {\r
                        pos_x += 138;\r
                        if(g_vore_showpreyhealth)\r
@@ -2923,13 +2924,13 @@ void Sbar_Draw (void)
 \r
                        if(f)\r
                        {\r
-                               Sbar_PrintStomachboardItem(pos - '-16 124 0', pl);\r
+                               Sbar_PrintStomachboardItem(pos - '-16 124 0', pl, TRUE);\r
                                pos_y += 1.25 * sbar_fontsize_y;\r
                        }\r
 \r
                        if(getstati(STAT_STOMACH_EATEN))\r
                        if(pl.sv_entnum == getstati(STAT_STOMACH_EATEN) - 1)\r
-                               Sbar_PrintStomachboardItem(pos - '-76 156 0', pl);\r
+                               Sbar_PrintStomachboardItem(pos - '-76 156 0', pl, FALSE);\r
                }\r
 \r
                if (cvar("viewsize") <= 100 && vid_conwidth <= 1600) {\r