]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sv_main.c
removed an unused extern for fs_modified
[xonotic/darkplaces.git] / sv_main.c
index f31fb4e9cb0cbc02189ccc95e480c3490f038694..1205fa0cb2596719b321d83bb12dad4b48aff09b 100644 (file)
--- a/sv_main.c
+++ b/sv_main.c
@@ -1234,14 +1234,14 @@ void SV_SendClientDatagram (client_t *client)
        else
        {
                // PROTOCOL_DARKPLACES5 and later support packet size limiting of updates
-               maxrate = bound(NET_MINRATE, sv_maxrate.integer, NET_MAXRATE);
+               maxrate = max(NET_MINRATE, sv_maxrate.integer);
                if (sv_maxrate.integer != maxrate)
                        Cvar_SetValueQuick(&sv_maxrate, maxrate);
 
                // 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;
        }