summaryrefslogtreecommitdiff
path: root/src/server/sv_snapshot.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2006-06-17 23:13:57 +0000
committerTim Angus <tim@ngus.net>2006-06-17 23:13:57 +0000
commit579672760092292b7a9752899010ffa4ac6faf6f (patch)
treea59ed488de023b76032ad8f0bdad5dc40cf51bc4 /src/server/sv_snapshot.c
parentda11bfa115f0670861cb18e05ec45ba515b7c3b7 (diff)
* Merged ioq3-r810
Diffstat (limited to 'src/server/sv_snapshot.c')
-rw-r--r--src/server/sv_snapshot.c7
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;