From 5bac5aa50dedaa328126189009d8e56fc9b4d178 Mon Sep 17 00:00:00 2001 From: havoc Date: Sun, 12 Feb 2006 19:44:39 +0000 Subject: [PATCH] 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 --- sv_user.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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++) -- 2.39.2