]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Unbreak most of sv_ratelimitlocalplayer.
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 3 Jan 2014 08:26:05 +0000 (08:26 +0000)
committerRudolf Polzer <divverent@xonotic.org>
Sat, 4 Jan 2014 18:29:10 +0000 (19:29 +0100)
A redesign to move the rate stuff from function parameters into the
netconn struct needs doing.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12034 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=f022ab3a2e0a13bac6afd113840a7947518b4805

netconn.c

index 32112da9d309dd060b26ed55814383644592eaae..707197b40589ecc65bb9e88d65b3e4b0747cd184 100755 (executable)
--- a/netconn.c
+++ b/netconn.c
@@ -930,7 +930,7 @@ int NetConn_SendUnreliableMessage(netconn_t *conn, sizebuf_t *data, protocolvers
                }
        }
 
-       NetConn_UpdateCleartime(&conn->cleartime, cl_rate.integer, cl_rate_burstsize.integer, totallen);
+       NetConn_UpdateCleartime(&conn->cleartime, rate, burstsize, totallen);
 
        return 0;
 }