}\r
\r
float fieldcounter;\r
-void Sbar_PrintStomachboardItem(vector pos, entity pl, float showhealth)\r
+void Sbar_PrintStomachboardItem(vector pos, entity pl)\r
{\r
vector tmp, rgb;\r
rgb = GetTeamRGB(pl.team);\r
drawcolorcodedstring(pos, str, '11 11 0', sbar_alpha_fg, DRAWFLAG_NORMAL);\r
}\r
\r
- if(showhealth)\r
- if(field == ST_HEALTH) {\r
+ if(field == ST_HEALTH)\r
+ if(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
if(f)\r
{\r
- Sbar_PrintStomachboardItem(pos - '-16 124 0', pl, TRUE);\r
+ Sbar_PrintStomachboardItem(pos - '-16 124 0', pl);\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, FALSE);\r
+ Sbar_PrintStomachboardItem(pos - '-76 156 0', pl);\r
}\r
\r
if (cvar("viewsize") <= 100 && vid_conwidth <= 1600) {\r