]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Unbreak most of sv_ratelimitlocalplayer.
authorRudolf Polzer <divverent@xonotic.org>
Fri, 3 Jan 2014 08:25:30 +0000 (09:25 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Fri, 3 Jan 2014 08:25:30 +0000 (09:25 +0100)
A redesign to move the rate stuff from function parameters into the
netconn struct needs doing.

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