]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fixed changelevel networking bug (now ignores clc_ackframe messages from clients...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 12 Feb 2006 19:44:39 +0000 (19:44 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 12 Feb 2006 19:44:39 +0000 (19:44 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5976 d7cf8633-e32d-0410-b094-e92efae38249

sv_user.c

index 5b28fea789c4b9f8146ebf72dded7248ad81cbc7..77fc45dab8ea0ab833531c732d053dbfc20d5500 100644 (file)
--- a/sv_user.c
+++ b/sv_user.c
@@ -857,7 +857,10 @@ void SV_ReadClientMessage(void)
                        if (msg_badread) Con_Printf("SV_ReadClientMessage: badread at %s:%i\n", __FILE__, __LINE__);
                        if (developer_networkentities.integer >= 1)
                                Con_Printf("recv clc_ackframe %i\n", num);
-                       if (host_client->latestframenum < num)
+                       // if the client hasn't progressed through signons yet,
+                       // ignore any clc_ackframes we get (they're probably from the
+                       // previous level)
+                       if (host_client->spawned && host_client->latestframenum < num)
                        {
                                int i;
                                for (i = host_client->latestframenum + 1;i < num;i++)