1
0
Fork 0
forked from fte/fteqw

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:
Spoike 2007-07-23 12:03:33 +00:00
parent 0efe5eb421
commit 9af21d3741

View file

@ -1454,6 +1454,12 @@ void CL_CheckServerInfo(void)
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");
oldstate = cl.ktprostate;
if (!stricmp(s, "standby"))
@ -2466,10 +2472,10 @@ void CL_ReadPackets (void)
else if (!Netchan_Process(&cls.netchan))
continue; // wasn't accepted for some reason
if (cls.netchan.incoming_sequence >= cls.netchan.outgoing_sequence)
{
Con_Printf("Server is in a timewarp (%i packets)\n", cls.netchan.incoming_sequence - cls.netchan.outgoing_sequence+1);
cls.netchan.outgoing_sequence = cls.netchan.incoming_sequence + 1;
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 from the future! (%i packets)\n", cls.netchan.incoming_sequence - cls.netchan.outgoing_sequence);
cls.netchan.outgoing_sequence = cls.netchan.incoming_sequence;
}
CL_ParseServerMessage ();
break;