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:
parent
69a32e88de
commit
eafb021179
1 changed files with 10 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue