Fix up scoreboard entry times.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2987 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2008-05-31 10:31:47 +00:00
parent 69a32e88de
commit eafb021179

View file

@ -644,6 +644,7 @@ void CL_CalcClientTime(void)
{
float want;
float oldst = cl.servertime;
want = cl.oldgametime + (realtime - cl.gametimemark);
if (want>cl.servertime)
@ -653,6 +654,15 @@ void CL_CalcClientTime(void)
cl.servertime = cl.gametime;
if (cl.servertime < cl.oldgametime)
cl.servertime = cl.oldgametime;
if (oldst == 0)
{
int i;
for (i = 0; i < MAX_CLIENTS; i++)
{
cl.players[i].entertime += cl.servertime;
}
}
}
if (cls.protocol == CP_NETQUAKE || (cls.demoplayback && cls.demoplayback != DPB_MVD && cls.demoplayback != DPB_EZTV))