From ab2fe9f6a77c937f4ce124f695a2c89d0c0893c2 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Mon, 12 Dec 2011 14:30:23 +0900 Subject: [PATCH] Remove the mvd timeskip code. After discussing things with Spike of FTE, it seems that not many clients handle zero length mvd packets particularly well. While it the skip code might be useful for qtv, getting the packets into one but not the other seems to be not worth the effort at this stage. --- qw/source/sv_recorder.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/qw/source/sv_recorder.c b/qw/source/sv_recorder.c index 9e9842758..f4e9cdabb 100644 --- a/qw/source/sv_recorder.c +++ b/qw/source/sv_recorder.c @@ -165,17 +165,8 @@ write_msg (sizebuf_t *msg, int type, int to, float time, sizebuf_t *dst) msec = (time - prevtime) * 1000; prevtime += msec * 0.001; - if (msec > 2000) - msec = 2000; - while (msec > 250) { - //the maximum interval we can send is 255ms, but that's nasty with - //floats, so keep things to a nice round number of 250ms (0.25 is float - //friendly) - MSG_WriteByte (dst, 250); - MSG_WriteByte (dst, dem_read); - MSG_WriteLong (dst, 0); - msec -= 250; - } + if (msec > 255) + msec = 255; if (msec < 2) msec = 0;