mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-14 00:10:46 +00:00
Fixed a fairly old ommision, and a small quirk...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2543 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
0efe5eb421
commit
9af21d3741
1 changed files with 10 additions and 4 deletions
|
@ -1454,6 +1454,12 @@ void CL_CheckServerInfo(void)
|
||||||
cls.allow_anyparticles = false;
|
cls.allow_anyparticles = false;
|
||||||
|
|
||||||
|
|
||||||
|
if (cls.demoplayback)
|
||||||
|
cl.fpd = 0;
|
||||||
|
else
|
||||||
|
cl.fpd = atoi(Info_ValueForKey(cl.serverinfo, "fpd"));
|
||||||
|
|
||||||
|
|
||||||
s = Info_ValueForKey(cl.serverinfo, "status");
|
s = Info_ValueForKey(cl.serverinfo, "status");
|
||||||
oldstate = cl.ktprostate;
|
oldstate = cl.ktprostate;
|
||||||
if (!stricmp(s, "standby"))
|
if (!stricmp(s, "standby"))
|
||||||
|
@ -2466,10 +2472,10 @@ void CL_ReadPackets (void)
|
||||||
else if (!Netchan_Process(&cls.netchan))
|
else if (!Netchan_Process(&cls.netchan))
|
||||||
continue; // wasn't accepted for some reason
|
continue; // wasn't accepted for some reason
|
||||||
|
|
||||||
if (cls.netchan.incoming_sequence >= cls.netchan.outgoing_sequence)
|
if (cls.netchan.incoming_sequence > cls.netchan.outgoing_sequence)
|
||||||
{
|
{ //server should not be responding to packets we have not sent yet
|
||||||
Con_Printf("Server is in a timewarp (%i packets)\n", cls.netchan.incoming_sequence - cls.netchan.outgoing_sequence+1);
|
Con_Printf("Server is from the future! (%i packets)\n", cls.netchan.incoming_sequence - cls.netchan.outgoing_sequence);
|
||||||
cls.netchan.outgoing_sequence = cls.netchan.incoming_sequence + 1;
|
cls.netchan.outgoing_sequence = cls.netchan.incoming_sequence;
|
||||||
}
|
}
|
||||||
CL_ParseServerMessage ();
|
CL_ParseServerMessage ();
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue