]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sv_user.c
changed particleaccumulator check to use >= 1 instead of > 0, hopefully this will...
[xonotic/darkplaces.git] / sv_user.c
index 3611cb596d0e1c985572860bc87a0c12b0074d51..66aab652758ab81ca6eeba08f4fc34eefba49280 100644 (file)
--- a/sv_user.c
+++ b/sv_user.c
@@ -461,7 +461,7 @@ qboolean SV_ReadClientMove (void)
 
        // limit reported time to current time
        // (incase the client is trying to cheat)
-       move->time = min(move->time, move->receivetime);
+       move->time = min(move->time, move->receivetime + sv.frametime);
 
        // read current angles
        for (i = 0;i < 3;i++)
@@ -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;
        }