]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sv_user.c
cvar: Remove unused ignore_callback variable
[xonotic/darkplaces.git] / sv_user.c
index 11354a14a155c304a2d551e75332babb331e3567..1cb5a3f057c305be869a94fdd163658e2098427b 100644 (file)
--- a/sv_user.c
+++ b/sv_user.c
@@ -811,7 +811,7 @@ static void SV_ExecuteClientMoves(void)
                                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
                                // bones_was_here: limit moveframetime to a multiple of sv.frametime to match inputtimeout behaviour
-                               moveframetime = min(move->time - host_client->cmd.time, min(0.1, sys_ticrate.value > 0.0 && sv.frametime ? sv.frametime * ceil(sv_clmovement_inputtimeout.value / sv.frametime) : sv_clmovement_inputtimeout.value));
+                               moveframetime = min(move->time - host_client->cmd.time, min(0.1, sys_ticrate.value > 0.0 && sv.frametime > 0.0 ? sv.frametime * ceil(sv_clmovement_inputtimeout.value / sv.frametime) : sv_clmovement_inputtimeout.value));
 
 
                                // discard (treat like lost) moves with too low distance from