]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sbar.c
If the new Key_Event breaks anything for you, you can set #if 0 and activate the old
[xonotic/darkplaces.git] / sbar.c
diff --git a/sbar.c b/sbar.c
index 0aedcd9cbbd7882e0bd92af339fae3f503f4b8e0..13f46e7b35ca1c3bf26d3d23adc7dcf755ea045f 100644 (file)
--- a/sbar.c
+++ b/sbar.c
@@ -1177,7 +1177,9 @@ float Sbar_PrintScoreboardItem(scoreboard_t *s, float x, float y)
        c = (qbyte *)&palette_complete[((s->colors & 15)<<4) + 8];
        DrawQ_Fill(x + 8, y+4, 32, 3, c[0] * (1.0f / 255.0f), c[1] * (1.0f / 255.0f), c[2] * (1.0f / 255.0f), c[3] * (1.0f / 255.0f) * sbar_alpha_fg.value, 0);
        // print the text
-       DrawQ_String(x, y, va("%c%4i %s", (s - cl.scores) == cl.playerentity - 1 ? 13 : ' ', (int) s->frags, s->name), 0, 8, 8, 1, 1, 1, 1 * sbar_alpha_fg.value, 0);
+       //DrawQ_String(x, y, va("%c%4i %s", (s - cl.scores) == cl.playerentity - 1 ? 13 : ' ', (int) s->frags, s->name), 0, 8, 8, 1, 1, 1, 1 * sbar_alpha_fg.value, 0);
+       // FIXME: use a constant for this color tag instead
+       DrawQ_ColoredString(x, y, va("%c%4i %s^7", (s - cl.scores) == cl.playerentity - 1 ? 13 : ' ', (int) s->frags, s->name), 0, 8, 8, 1, 1, 1, 1 * sbar_alpha_fg.value, 0, NULL ); 
        return 8;
 }