mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-22 20:41:20 +00:00
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.
This commit is contained in:
parent
60c9d05d47
commit
ab2fe9f6a7
1 changed files with 2 additions and 11 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue