From 5ee7b5ed5905f4fe754acd0d993d4578697b0f1c Mon Sep 17 00:00:00 2001 From: Thilo Schulz Date: Sat, 26 Aug 2006 02:45:59 +0000 Subject: [PATCH] A few more timescale influences added --- code/server/sv_snapshot.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/server/sv_snapshot.c b/code/server/sv_snapshot.c index da698501..80b6af42 100644 --- a/code/server/sv_snapshot.c +++ b/code/server/sv_snapshot.c @@ -558,7 +558,7 @@ static int SV_RateMsec( client_t *client, int messageSize ) { 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 @@ void SV_SendMessageToClient( msg_t *msg, client_t *client ) { // 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;