From 6badc60e47deb6a26e2e318d7f3813ffaef14c52 Mon Sep 17 00:00:00 2001 From: havoc Date: Mon, 10 Jul 2006 06:58:17 +0000 Subject: [PATCH] fix bug where realtime was used instead of cl.time in player times on scoreboard git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6509 d7cf8633-e32d-0410-b094-e92efae38249 --- cl_parse.c | 2 +- sbar.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cl_parse.c b/cl_parse.c index 104696f1..17efad5b 100644 --- a/cl_parse.c +++ b/cl_parse.c @@ -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 e3499217..d9c3bba6 100644 --- 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) -- 2.39.2