]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
default new clients' rate to unlimited, DP clients will send an
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 11 Jun 2007 05:37:12 +0000 (05:37 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 11 Jun 2007 05:37:12 +0000 (05:37 +0000)
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

index 9db61cd4667843b4ea1454dae915060a58e4d1e6..8563c4c27ef5b2ab9034661eea6a22ca8210c300 100644 (file)
--- 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;