]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Highlight entries in the stomach board, to make it even more obvious if they're our...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 4 Sep 2010 23:18:31 +0000 (02:18 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 4 Sep 2010 23:18:31 +0000 (02:18 +0300)
data/qcsrc/client/sbar.qc

index e8920f46dee17f8e5a8b0541b1dc547c22d408cd..f5a1a5075049936b79d2fb7313cfe3f55fc006f9 100644 (file)
@@ -960,6 +960,14 @@ void Sbar_PrintStomachboardItem(vector pos, entity pl)
 \r
                str = Sbar_GetStomachField(pl, field);\r
 \r
+               if(field == ST_NAME) // do this for one field, or we get multiple highlights in the same spot\r
+               {\r
+                       if(getstati(STAT_STOMACH_EATEN))\r
+                               drawfill(pos - '0 0 0', '193 11 0', '1 0 0', 0.25, DRAWFLAG_NORMAL);\r
+                       else\r
+                               drawfill(pos - '0 0 0', '193 11 0', '0 1 0', 0.25, DRAWFLAG_NORMAL);\r
+               }\r
+\r
                if(field == ST_NAME) {\r
                        f = stof(getplayerkey(pl.sv_entnum, "colors"));\r
                        drawpic(pos, "gfx/sb_playercolor_base", '22 11 0', '1 1 1', sbar_alpha_fg, DRAWFLAG_NORMAL);\r