1
0
Fork 0
forked from fte/fteqw

trying to fix q2 connectivity.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3993 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2012-02-15 13:35:37 +00:00
parent 09c275794c
commit 0736882c60

View file

@ -2270,10 +2270,6 @@ void CL_ConnectionlessPacket (void)
{ {
/*Quake2 or Darkplaces*/ /*Quake2 or Darkplaces*/
char *s2; char *s2;
/*throttle*/
if (curtime - lasttime < 500)
return;
lasttime = curtime;
for (s2 = s+9; *s2; s2++) for (s2 = s+9; *s2; s2++)
{ {
@ -2285,6 +2281,11 @@ void CL_ConnectionlessPacket (void)
#ifdef NQPROT #ifdef NQPROT
if (cls.protocol == CP_NETQUAKE || cls.protocol == CP_UNKNOWN) if (cls.protocol == CP_NETQUAKE || cls.protocol == CP_UNKNOWN)
{ {
/*throttle*/
if (curtime - lasttime < 500)
return;
lasttime = curtime;
cls.protocol = CP_NETQUAKE; cls.protocol = CP_NETQUAKE;
CL_ConnectToDarkPlaces(s+9, net_from); CL_ConnectToDarkPlaces(s+9, net_from);
} }