From 0d69d44e91a3d878e74e6ae7640792bfde38fc68 Mon Sep 17 00:00:00 2001 From: havoc Date: Fri, 8 Dec 2006 15:18:19 +0000 Subject: [PATCH] patch from div0 that fixes rate limiting code to make use of sv_maxrate (as it was supposed to) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6641 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 f31fb4e9..1516b527 100644 --- 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; } -- 2.39.2