]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
try not to kick players for supposed speed cheating when float time degrades too...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 25 May 2006 23:28:03 +0000 (23:28 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 25 May 2006 23:28:03 +0000 (23:28 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6389 d7cf8633-e32d-0410-b094-e92efae38249

sv_user.c

index 95bf42bce52b6c6083f502cdfd2729ddee82f519..4d53cfab21973c9765a02d90be7e79e71dfbfb04 100644 (file)
--- a/sv_user.c
+++ b/sv_user.c
@@ -530,9 +530,9 @@ qboolean SV_ReadClientMove (void)
 
        if (!host_client->spawned)
                memset(move, 0, sizeof(*move));
-       else if (move->time > (float)sv.time + 0.001f) // add a little fuzz factor due to float precision issues
+       else if (move->sequence && (float)move->time > (float)sv.time + 0.125f) // add a little fuzz factor due to float precision issues
        {
-               Con_DPrintf("client move->time %f > sv.time %f, kicking\n", move->time, sv.time);
+               Con_DPrintf("client move->time %f > sv.time %f, kicking\n", (float)move->time, (float)sv.time);
                // if the client is lying about time, we have definitively detected a
                // speed cheat attempt of the worst sort, and we can immediately kick
                // the offending player off.