From: havoc Date: Sun, 12 Feb 2006 19:44:39 +0000 (+0000) Subject: fixed changelevel networking bug (now ignores clc_ackframe messages from clients... X-Git-Tag: xonotic-v0.1.0preview~4335 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5bac5aa50dedaa328126189009d8e56fc9b4d178;p=xonotic%2Fdarkplaces.git fixed changelevel networking bug (now ignores clc_ackframe messages from clients who are not spawned, this prevents leftover entity acks from previous level from messing up netcode) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5976 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/sv_user.c b/sv_user.c index 5b28fea7..77fc45da 100644 --- 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++)