From 68024e4824313c37ce75fe4015d38baeedebbf39 Mon Sep 17 00:00:00 2001 From: havoc Date: Mon, 11 Jun 2007 05:37:12 +0000 Subject: [PATCH] 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 --- sv_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.2