]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
no longer kicks off client if it got signon 1 twice during a reconnect (not sure...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 13 Jan 2005 06:00:45 +0000 (06:00 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 13 Jan 2005 06:00:45 +0000 (06:00 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4915 d7cf8633-e32d-0410-b094-e92efae38249

cl_parse.c

index 262b08636b43a9a5d4b27dc38061c759f4086b41..9989bc3c8a5ce45ea420422171d565dd5537b58e 100644 (file)
@@ -1607,7 +1607,9 @@ void CL_ParseServerMessage(void)
 
                case svc_signonnum:
                        i = MSG_ReadByte ();
-                       if (i <= cls.signon)
+                       // LordHavoc: it's rude to kick off the client if they missed the
+                       // reconnect somehow, so allow signon 1 even if at signon 1
+                       if (i <= cls.signon && i != 1)
                                Host_Error ("Received signon %i when at %i", i, cls.signon);
                        cls.signon = i;
                        CL_SignonReply ();