]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sv_main.c
patch from div0 that fixes rate limiting code to make use of sv_maxrate (as it was...
[xonotic/darkplaces.git] / 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;
        }