From e900b48c90b6cd73bed04c520cb284795bffcefa Mon Sep 17 00:00:00 2001 From: havoc Date: Mon, 27 Feb 2006 02:19:30 +0000 Subject: [PATCH] fix the minutes display on the QW scoreboard git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6042 d7cf8633-e32d-0410-b094-e92efae38249 --- sbar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbar.c b/sbar.c index 79b0cf91..c921504e 100644 --- a/sbar.c +++ b/sbar.c @@ -1395,6 +1395,7 @@ float Sbar_PrintScoreboardItem(scoreboard_t *s, float x, float y) unsigned char *c; if (cls.protocol == PROTOCOL_QUAKEWORLD) { + minutes = (int)((cl.intermission ? cl.completed_time - s->qw_entertime : realtime - s->qw_entertime) / 60.0); // draw colors behind score c = (unsigned char *)&palette_complete[(s->colors & 0xf0) + 8]; DrawQ_Fill(x + 14*8, y+1, 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); @@ -1406,7 +1407,6 @@ float Sbar_PrintScoreboardItem(scoreboard_t *s, float x, float y) } else { - minutes = (int)((cl.intermission ? cl.completed_time - s->qw_entertime : realtime - s->qw_entertime) / 60.0); // draw colors behind score c = (unsigned char *)&palette_complete[(s->colors & 0xf0) + 8]; DrawQ_Fill(x + 1*8, y+1, 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); -- 2.39.2