diff options
author | Tim Angus <tim@ngus.net> | 2006-06-17 23:13:57 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2006-06-17 23:13:57 +0000 |
commit | 579672760092292b7a9752899010ffa4ac6faf6f (patch) | |
tree | a59ed488de023b76032ad8f0bdad5dc40cf51bc4 /src/server/sv_snapshot.c | |
parent | da11bfa115f0670861cb18e05ec45ba515b7c3b7 (diff) |
* Merged ioq3-r810
Diffstat (limited to 'src/server/sv_snapshot.c')
-rw-r--r-- | src/server/sv_snapshot.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/server/sv_snapshot.c b/src/server/sv_snapshot.c index cd295edf..dd483f17 100644 --- a/src/server/sv_snapshot.c +++ b/src/server/sv_snapshot.c @@ -552,6 +552,13 @@ static int SV_RateMsec( client_t *client, int messageSize ) { rate = sv_maxRate->integer; } } + if ( sv_minRate->integer ) { + if ( sv_minRate->integer < 1000 ) + Cvar_Set( "sv_minRate", "1000" ); + if ( sv_minRate->integer > rate ) + rate = sv_minRate->integer; + } + rateMsec = ( messageSize + HEADER_RATE_BYTES ) * 1000 / rate; return rateMsec; |