fix bug where realtime was used instead of cl.time in player times on scoreboard
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 10 Jul 2006 06:58:17 +0000 (06:58 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 10 Jul 2006 06:58:17 +0000 (06:58 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6509 d7cf8633-e32d-0410-b094-e92efae38249

cl_parse.c
sbar.c

index 104696f..17efad5 100644 (file)
@@ -2370,7 +2370,7 @@ void CL_ParseServerMessage(void)
                                if (i >= cl.maxclients)
                                        Host_Error("CL_ParseServerMessage: svc_updateentertime >= cl.maxclients");
                                // seconds ago
-                               cl.scores[i].qw_entertime = realtime - MSG_ReadFloat();
+                               cl.scores[i].qw_entertime = cl.time - MSG_ReadFloat();
                                break;
 
                        case qw_svc_spawnbaseline:
diff --git a/sbar.c b/sbar.c
index e349921..d9c3bba 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)