]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - net_loop.c
some cleanups to hostcache (got rid of driver/address stuff and expanded the strings...
[xonotic/darkplaces.git] / net_loop.c
index 47d8d0e166f38a6b4d7bd6283a1def630770ddbe..72d3570047628a80d83238c38a62494b0dd918f2 100644 (file)
@@ -8,7 +8,7 @@ of the License, or (at your option) any later version.
 
 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
 See the GNU General Public License for more details.
 
@@ -62,7 +62,7 @@ void Loop_SearchForHosts (qboolean xmit)
        strcpy(hostcache[0].map, sv.name);
        hostcache[0].users = net_activeconnections;
        hostcache[0].maxusers = svs.maxclients;
-       hostcache[0].driver = net_driverlevel;
+       //hostcache[0].driver = net_driverlevel;
        strcpy(hostcache[0].cname, "local");
 }
 
@@ -77,7 +77,7 @@ qsocket_t *Loop_Connect (const char *host)
 {
        if (strcmp(host,"local") != 0)
                return NULL;
-       
+
        localconnectpending = true;
 
        if (!loop_client)
@@ -108,8 +108,8 @@ qsocket_t *Loop_Connect (const char *host)
 
        loop_client->driverdata = (void *)loop_server;
        loop_server->driverdata = (void *)loop_client;
-       
-       return loop_client;     
+
+       return loop_client;
 }