]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sbar.c
fix bug where realtime was used instead of cl.time in player times on scoreboard
[xonotic/darkplaces.git] / sbar.c
diff --git a/sbar.c b/sbar.c
index e349921711134f0736eab9bd6fe43b8d96819437..d9c3bba6b7be6e35f30e49756f93a4dda536f524 100644 (file)
--- a/sbar.c
+++ b/sbar.c
@@ -1370,7 +1370,7 @@ float Sbar_PrintScoreboardItem(scoreboard_t *s, float x, float y)
 {
        int minutes;
        unsigned char *c;
-       minutes = (int)((cl.intermission ? cl.completed_time - s->qw_entertime : realtime - s->qw_entertime) / 60.0);
+       minutes = (int)((cl.intermission ? cl.completed_time - s->qw_entertime : cl.time - s->qw_entertime) / 60.0);
        if (s->qw_spectator)
        {
                if (s->qw_ping || s->qw_packetloss)