]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
patch from div0 that fixes rate limiting code to make use of sv_maxrate (as it was...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 8 Dec 2006 15:18:19 +0000 (15:18 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 8 Dec 2006 15:18:19 +0000 (15:18 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6641 d7cf8633-e32d-0410-b094-e92efae38249

sv_main.c

index f31fb4e9cb0cbc02189ccc95e480c3490f038694..1516b527188c3803518ebd65cbf04aebf18bf035 100644 (file)
--- a/sv_main.c
+++ b/sv_main.c
@@ -1241,7 +1241,7 @@ void SV_SendClientDatagram (client_t *client)
                // this rate limiting does not understand sys_ticrate 0
                // (but no one should be running that on a server!)
                rate = bound(NET_MINRATE, client->rate, maxrate);
-               rate = (int)(client->rate * sys_ticrate.value);
+               rate = (int)(rate * sys_ticrate.value);
                maxsize = bound(100, rate, 1400);
                maxsize2 = 1400;
        }