From: havoc Date: Mon, 11 Jun 2007 05:37:12 +0000 (+0000) Subject: default new clients' rate to unlimited, DP clients will send an X-Git-Tag: xonotic-v0.1.0preview~3063 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=68024e4824313c37ce75fe4015d38baeedebbf39;p=xonotic%2Fdarkplaces.git default new clients' rate to unlimited, DP clients will send an appropriate value long before any ingame messages are sent, and the sv_maxrate still applies git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7398 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/sv_main.c b/sv_main.c index 9db61cd4..8563c4c2 100644 --- a/sv_main.c +++ b/sv_main.c @@ -760,8 +760,8 @@ void SV_ConnectClient (int clientnum, netconn_t *netconnection) // prepare the unreliable message buffer client->unreliablemsg.data = client->unreliablemsg_data; client->unreliablemsg.maxsize = sizeof(client->unreliablemsg_data); - // updated by receiving "rate" command from client - client->rate = NET_MINRATE; + // updated by receiving "rate" command from client, this is also the default if not using a DP client + client->rate = 1000000000; // no limits for local player if (client->netconnection && LHNETADDRESS_GetAddressType(&client->netconnection->peeraddress) == LHNETADDRESSTYPE_LOOP) client->rate = 1000000000;