]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
bound by 0.1 again (this bounding had its reason) AND by sv_clmovement_waitforinput...
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 10 Sep 2008 06:09:36 +0000 (06:09 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 10 Sep 2008 06:09:36 +0000 (06:09 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8494 d7cf8633-e32d-0410-b094-e92efae38249

sv_user.c

index 41755be4e0cad212d2040d9d7862fa09cab9f66c..91f505c185c361d1294d6dbaec4512a4c41b9cec 100644 (file)
--- a/sv_user.c
+++ b/sv_user.c
@@ -585,7 +585,7 @@ void SV_ExecuteClientMoves(void)
                                // this is a new move
                                move->time = bound(sv.time - 1, move->time, sv.time); // prevent slowhack/speedhack combos
                                move->time = max(move->time, host_client->cmd.time); // prevent backstepping of time
-                               moveframetime = bound(0, move->time - host_client->cmd.time, sv.frametime * sv_clmovement_waitforinput.integer);
+                               moveframetime = bound(0, move->time - host_client->cmd.time, min(0.1, sv.frametime * sv_clmovement_waitforinput.integer));
                                //Con_Printf("movesequence = %i (%i lost), moveframetime = %f\n", move->sequence, move->sequence ? move->sequence - host_client->movesequence - 1 : 0, moveframetime);
                                host_client->cmd = *move;
                                host_client->movesequence = move->sequence;