From: havoc Date: Mon, 11 Jun 2007 15:45:02 +0000 (+0000) Subject: added back rate limiting on old protocols, however sv_maxrate no longer X-Git-Tag: xonotic-v0.1.0preview~3058 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=57a27d2996a59e817ceac69facd1627adc4dfae0;p=xonotic%2Fdarkplaces.git added back rate limiting on old protocols, however sv_maxrate no longer applies on old protocols, and quake clients and other old clients will simply default to unlimited rate, so this allows a client to request a lower rate but by default does not impose any limiting git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7403 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/sv_main.c b/sv_main.c index c105bebb..3d9e091b 100644 --- a/sv_main.c +++ b/sv_main.c @@ -1589,7 +1589,7 @@ static void SV_SendClientDatagram (client_t *client) // no packet size limit support on older protocols because DP1-4 kick // the client off if they overflow, and quake protocol shows less than // the full entity set if rate limited - clientrate = 1000000000; + clientrate = max(NET_MINRATE, client->rate); maxsize = 1400; maxsize2 = 1400; }