Determine svs.realtime from curtime and not the global timing.

This is the same as the client does for it's realtime. It looks at least
somewhat more correct since it pevents rounding errors. And things are
simplified a litte bit since the server timing is now independent of the
global timing.
This commit is contained in:
Yamagi Burmeister 2017-09-06 09:01:20 +02:00
parent 79f73da62b
commit f16242e923
3 changed files with 4 additions and 4 deletions

View file

@ -784,6 +784,6 @@ void SCR_BeginLoadingPlaque(void);
void SV_Init(void);
void SV_Shutdown(char *finalmsg, qboolean reconnect);
void SV_Frame(int msec);
void SV_Frame();
#endif

View file

@ -380,7 +380,7 @@ Qcommon_Frame(int msec)
}
#endif
SV_Frame(msec);
SV_Frame();
#ifndef DEDICATED_ONLY
if (host_speeds->value)

View file

@ -376,7 +376,7 @@ SV_RunGameFrame(void)
}
void
SV_Frame(int msec)
SV_Frame()
{
#ifndef DEDICATED_ONLY
time_before_game = time_after_game = 0;
@ -388,7 +388,7 @@ SV_Frame(int msec)
return;
}
svs.realtime += msec;
svs.realtime = curtime;
/* keep the random time dependent */
randk();