diff options
author | Thilo Schulz <arny@ats.s.bawue.de> | 2011-07-18 14:23:54 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-10 22:30:01 +0000 |
commit | 2e4f58b4422995f703e51aa92a7e49d0d0664f00 (patch) | |
tree | 100e79c96713d14be9863a7406d7f11d6176e361 /src | |
parent | 9e533363b2d466a6260c0558ccb13dccad7dd2c4 (diff) |
Fix delta compression breaking due to packet queuing
Diffstat (limited to 'src')
-rw-r--r-- | src/server/sv_snapshot.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/server/sv_snapshot.c b/src/server/sv_snapshot.c index d57acf5c..ddd87cc6 100644 --- a/src/server/sv_snapshot.c +++ b/src/server/sv_snapshot.c @@ -605,6 +605,12 @@ void SV_SendClientMessages(void) if(*c->downloadName) continue; // Client is downloading, don't send snapshots + if(c->netchan.unsentFragments || c->netchan_start_queue) + { + c->rateDelayed = qtrue; + continue; // Drop this snapshot if the packet queue is still full or delta compression will break + } + if(!(c->netchan.remoteAddress.type == NA_LOOPBACK || (sv_lanForceRate->integer && Sys_IsLANAddress(c->netchan.remoteAddress)))) { @@ -612,12 +618,6 @@ void SV_SendClientMessages(void) if(svs.time - c->lastSnapshotTime < c->snapshotMsec * com_timescale->value) continue; // It's not time yet - - if(c->netchan.unsentFragments || c->netchan_start_queue) - { - c->rateDelayed = qtrue; - continue; // Drop this snapshot if the packet queue is still full - } if(SV_RateMsec(c) > 0) { |