r871 - trunk/code/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Fri Aug 25 22:45:59 EDT 2006


Author: thilo
Date: 2006-08-25 22:45:59 -0400 (Fri, 25 Aug 2006)
New Revision: 871

Modified:
   trunk/code/server/sv_snapshot.c
Log:
A few more timescale influences added


Modified: trunk/code/server/sv_snapshot.c
===================================================================
--- trunk/code/server/sv_snapshot.c	2006-08-26 01:45:27 UTC (rev 870)
+++ trunk/code/server/sv_snapshot.c	2006-08-26 02:45:59 UTC (rev 871)
@@ -558,7 +558,7 @@
 			rate = sv_minRate->integer;
 	}
 
-	rateMsec = ( messageSize + HEADER_RATE_BYTES ) * 1000 / rate;
+	rateMsec = ( messageSize + HEADER_RATE_BYTES ) * 1000 / rate * com_timescale->value;
 
 	return rateMsec;
 }
@@ -594,9 +594,9 @@
 	// normal rate / snapshotMsec calculation
 	rateMsec = SV_RateMsec(client, msg->cursize);
 
-	if ( rateMsec < client->snapshotMsec ) {
+	if ( rateMsec < client->snapshotMsec * com_timescale->value) {
 		// never send more packets than this, no matter what the rate is at
-		rateMsec = client->snapshotMsec;
+		rateMsec = client->snapshotMsec * com_timescale->value;
 		client->rateDelayed = qfalse;
 	} else {
 		client->rateDelayed = qtrue;




More information about the quake3-commits mailing list