[quake3-commits] r2089 - trunk/code/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Mon Jul 18 10:23:54 EDT 2011
Author: thilo
Date: 2011-07-18 10:23:54 -0400 (Mon, 18 Jul 2011)
New Revision: 2089
Modified:
trunk/code/server/sv_snapshot.c
Log:
Fix delta compression breaking due to packet queuing
Modified: trunk/code/server/sv_snapshot.c
===================================================================
--- trunk/code/server/sv_snapshot.c 2011-07-18 10:14:04 UTC (rev 2088)
+++ trunk/code/server/sv_snapshot.c 2011-07-18 14:23:54 UTC (rev 2089)
@@ -610,6 +610,12 @@
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))))
{
@@ -617,12 +623,6 @@
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)
{
More information about the quake3-commits
mailing list