diff options
author | thilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2006-08-26 02:45:59 +0000 |
---|---|---|
committer | thilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2006-08-26 02:45:59 +0000 |
commit | e59363906978ea9a51838537a35daf7b422c7bb5 (patch) | |
tree | dc1f95fb7ea56a74c21d04ce43758874df94521d /code/server | |
parent | 30a33db828a79bd9984dc2ae950c16839b8f07dc (diff) | |
download | ioquake3-aero-e59363906978ea9a51838537a35daf7b422c7bb5.tar.gz ioquake3-aero-e59363906978ea9a51838537a35daf7b422c7bb5.zip |
A few more timescale influences added
git-svn-id: svn://svn.icculus.org/quake3/trunk@871 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/server')
-rw-r--r-- | code/server/sv_snapshot.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/code/server/sv_snapshot.c b/code/server/sv_snapshot.c index da69850..80b6af4 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; |