]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
add a small epsilon to the moveframetime check
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 12 Apr 2009 19:16:00 +0000 (19:16 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 12 Apr 2009 19:16:00 +0000 (19:16 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8915 d7cf8633-e32d-0410-b094-e92efae38249

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);