]> de.git.xonotic.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)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 3 Jan 2014 08:26:05 +0000 (08:26 +0000)
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

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