From: havoc Date: Wed, 7 Feb 2007 18:39:41 +0000 (+0000) Subject: added a check for move->sequence that is more than 16 packets old to avoid having... X-Git-Tag: xonotic-v0.1.0preview~3611 X-Git-Url: http://git.xonotic.org/?a=commitdiff_plain;h=9157c72ea0e2c1bf74a7a6facebfbc1e08feb0ac;p=xonotic%2Fdarkplaces.git added a check for move->sequence that is more than 16 packets old to avoid having frozen players after a level change git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6802 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/sv_user.c b/sv_user.c index 20f909a0..66aab652 100644 --- a/sv_user.c +++ b/sv_user.c @@ -521,9 +521,10 @@ qboolean SV_ReadClientMove (void) if (msg_badread) Con_Printf("SV_ReadClientMessage: badread at %s:%i\n", __FILE__, __LINE__); } - if (move->sequence && move->sequence <= host_client->movesequence) + if (move->sequence && move->sequence <= host_client->movesequence && move->sequence >= host_client->movesequence - 16) { // repeat of old input (to fight packet loss) + // the >= -16 check avoids frozen players after a level change return kickplayer; }