]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sv_user.c
add a small epsilon to the moveframetime check
[xonotic/darkplaces.git] / sv_user.c
index f5c822e8f7334559430d7271993b3b02a5407406..26686d44f7d99f3d9ab969e78bef3fc979b83345 100644 (file)
--- a/sv_user.c
+++ b/sv_user.c
@@ -591,7 +591,7 @@ void SV_ExecuteClientMoves(void)
                                // the previous one to prevent hacks using float inaccuracy
                                // clients will see this as packet loss in the netgraph
                                if(sv_clmovement_maxnetfps.value > 0)
-                               if(moveframetime < 1 / sv_clmovement_maxnetfps.value)
+                               if(moveframetime + 0.0001 < 1 / sv_clmovement_maxnetfps.value)
                                        continue;
 
                                //Con_Printf("movesequence = %i (%i lost), moveframetime = %f\n", move->sequence, move->sequence ? move->sequence - host_client->movesequence - 1 : 0, moveframetime);