From 8cd3b8f3b6d2613f1be4bc640831c4db6983a161 Mon Sep 17 00:00:00 2001 From: "Zephaniah E. Hull" Date: Mon, 10 Jan 2000 13:51:52 +0000 Subject: [PATCH] Whoops, fix a bug on sv_user.c.. --- qw_server/sv_user.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/qw_server/sv_user.c b/qw_server/sv_user.c index 5a28486..e786b44 100644 --- a/qw_server/sv_user.c +++ b/qw_server/sv_user.c @@ -1380,11 +1380,9 @@ void SV_RunCmd (usercmd_t *ucmd, qboolean inside) tmp_time = realtime - host_client->frame_time_2; tmp_time /= 2; // Cap it at a max of 250 msec though.. - ucmd->msec = max(tmp_time * 1000, 250); - /* - if (ucmd->msec > oldmsec) - ucmd->msec = oldmsec; - */ + ucmd->msec = tmp_time * 1000; + ucmd->msec = min(ucmd->msec, 250); + ucmd->msec = max(ucmd->msec, 10); // If were more then 10 msecs off what the client tells us, report it. if (abs(oldmsec - ucmd->msec) > 10) {