From 57a27d2996a59e817ceac69facd1627adc4dfae0 Mon Sep 17 00:00:00 2001 From: havoc Date: Mon, 11 Jun 2007 15:45:02 +0000 Subject: [PATCH] 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 --- sv_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.2