]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
sv_user: Remove redundant return/unreachable code
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 29 Mar 2021 20:55:11 +0000 (20:55 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 29 Mar 2021 20:55:11 +0000 (20:55 +0000)
moveframetime is already checked a few lines above and already returns
if it's less than 0.0005, making the redundant return unreachable.

From bones_was_here

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

sv_user.c

index 9e17dbfee03d0da0d8e65e19122b4cbb7b667667..cf4727b000c8be0ac9e11c8bfbaac1aa8c2a1120 100644 (file)
--- a/sv_user.c
+++ b/sv_user.c
@@ -840,8 +840,6 @@ static void SV_ExecuteClientMoves(void)
                                //  with this approach, and if they don't send input for a while they
                                //  start moving anyway, so the longest 'lagaport' possible is
                                //  determined by the sv_clmovement_inputtimeout cvar)
-                               if (moveframetime <= 0)
-                                       continue;
                                oldframetime = PRVM_serverglobalfloat(frametime);
                                oldframetime2 = sv.frametime;
                                // update ping time for qc to see while executing this move