]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
added back rate limiting on old protocols, however sv_maxrate no longer
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 11 Jun 2007 15:45:02 +0000 (15:45 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 11 Jun 2007 15:45:02 +0000 (15:45 +0000)
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

index c105bebba1e4b2322bdb96c9fe2381a429519d81..3d9e091b8b0d39c1ed06a68754bec74bca52ee1d 100644 (file)
--- 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;
        }