]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
sv_user: Use sv.time directly, to limit reported time to current time
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 29 Mar 2021 20:55:13 +0000 (20:55 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 29 Mar 2021 20:55:13 +0000 (20:55 +0000)
From bones_was_here

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13103 d7cf8633-e32d-0410-b094-e92efae38249

sv_user.c

index f3115088abd651d59d950f368b409d2b2a124acb..9395be62acf37d7fea8d4e6a0fe97010530e55e3 100644 (file)
--- a/sv_user.c
+++ b/sv_user.c
@@ -663,7 +663,7 @@ static void SV_ReadClientMove (void)
 #endif
        // limit reported time to current time
        // (incase the client is trying to cheat)
-       move->time = min(move->time, move->receivetime + sv.frametime);
+       move->time = min(move->time, sv.time + sv.frametime);
 
        // read current angles
        for (i = 0;i < 3;i++)