From: havoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Date: Thu, 13 Jan 2005 06:00:45 +0000 (+0000)
Subject: no longer kicks off client if it got signon 1 twice during a reconnect (not sure... 
X-Git-Tag: xonotic-v0.1.0preview~5234
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=cc80439f0427f96ce65dbc8c2175853dd9d48aa3;p=xonotic%2Fdarkplaces.git

no longer kicks off client if it got signon 1 twice during a reconnect (not sure why this happens occasionally though)


git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4915 d7cf8633-e32d-0410-b094-e92efae38249
---

diff --git a/cl_parse.c b/cl_parse.c
index 262b0863..9989bc3c 100644
--- a/cl_parse.c
+++ b/cl_parse.c
@@ -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 ();