From 0736882c60b26d2a58f87146b207c84b61c46049 Mon Sep 17 00:00:00 2001 From: Spoike Date: Wed, 15 Feb 2012 13:35:37 +0000 Subject: [PATCH] trying to fix q2 connectivity. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3993 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/cl_main.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/engine/client/cl_main.c b/engine/client/cl_main.c index 095108012..e027f4787 100644 --- a/engine/client/cl_main.c +++ b/engine/client/cl_main.c @@ -2270,10 +2270,6 @@ void CL_ConnectionlessPacket (void) { /*Quake2 or Darkplaces*/ char *s2; - /*throttle*/ - if (curtime - lasttime < 500) - return; - lasttime = curtime; for (s2 = s+9; *s2; s2++) { @@ -2285,6 +2281,11 @@ void CL_ConnectionlessPacket (void) #ifdef NQPROT if (cls.protocol == CP_NETQUAKE || cls.protocol == CP_UNKNOWN) { + /*throttle*/ + if (curtime - lasttime < 500) + return; + lasttime = curtime; + cls.protocol = CP_NETQUAKE; CL_ConnectToDarkPlaces(s+9, net_from); }