From: havoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Date: Fri, 8 Dec 2006 15:18:19 +0000 (+0000)
Subject: patch from div0 that fixes rate limiting code to make use of sv_maxrate (as it was... 
X-Git-Tag: xonotic-v0.1.0preview~3758
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0d69d44e91a3d878e74e6ae7640792bfde38fc68;p=xonotic%2Fdarkplaces.git

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
---

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;
 	}