From 9d8f9edad938a541140dd34a3c205ff3dc76c800 Mon Sep 17 00:00:00 2001 From: havoc Date: Thu, 25 May 2006 23:28:03 +0000 Subject: [PATCH] try not to kick players for supposed speed cheating when float time degrades too much git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6389 d7cf8633-e32d-0410-b094-e92efae38249 --- sv_user.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sv_user.c b/sv_user.c index 95bf42bc..4d53cfab 100644 --- 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. -- 2.39.2