From 6be8ab8711e2862b29cbd5f27a9ace1e2d4510b9 Mon Sep 17 00:00:00 2001 From: divverent Date: Sun, 12 Apr 2009 19:16:00 +0000 Subject: [PATCH] add a small epsilon to the moveframetime check git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8915 d7cf8633-e32d-0410-b094-e92efae38249 --- sv_user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sv_user.c b/sv_user.c index f5c822e8..26686d44 100644 --- 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); -- 2.39.2