]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/client/hud.qc
Don't show "self" in the health field of the stomach board when the player in cause...
[voretournament/voretournament.git] / data / qcsrc / client / hud.qc
index 576fa502d16f49836a7c0b1db5ab3aae2c398633..4f167715f28f6b7b85448f1299b45fc24363e7dd 100644 (file)
@@ -1060,9 +1060,7 @@ void Sbar_PrintStomachboardItem(entity pl, vector position, vector dimensions)
                        pos_x = position_x + dimensions_x * cvar("hud_item_preylist_health_icon_location");\r
                        sz_x = dimensions_x * cvar("hud_item_preylist_health_icon_length");\r
 \r
-                       if(pl.sv_entnum == player_localentnum - 1 || (spectatee_status && pl.sv_entnum == spectatee_status - 1))\r
-                               drawcolorcodedstring(pos, textShortenToWidth("self", sz_x, font_sz, stringwidth_colors), font_sz, sbar_alpha_fg, DRAWFLAG_NORMAL);\r
-                       else\r
+                       if not(pl.sv_entnum == player_localentnum - 1 || (spectatee_status && pl.sv_entnum == spectatee_status - 1))\r
                        {\r
                                drawpic(pos, Sbar_GetTexture("sb_health"), sz, '1 1 1', sbar_alpha_fg, DRAWFLAG_NORMAL);\r
 \r