From: havoc Date: Thu, 20 Feb 2003 09:13:31 +0000 (+0000) Subject: simplified "connect local" a bit X-Git-Tag: xonotic-v0.1.0preview~6760 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6569235ab730a935c97616559ee3062a76cd7442;p=xonotic%2Fdarkplaces.git simplified "connect local" a bit git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2767 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/net_main.c b/net_main.c index 6e055702..836d2d04 100644 --- a/net_main.c +++ b/net_main.c @@ -517,7 +517,6 @@ qsocket_t *NET_Connect (char *host) { qsocket_t *ret; int n; - int numdrivers = net_numdrivers; SetNetTime(); @@ -528,8 +527,8 @@ qsocket_t *NET_Connect (char *host) { if (Q_strcasecmp (host, "local") == 0) { - numdrivers = 1; - goto JustDoIt; + net_driverlevel = 0; + return dfunc.Connect (host); } if (hostCacheCount) @@ -568,7 +567,7 @@ qsocket_t *NET_Connect (char *host) } JustDoIt: - for (net_driverlevel=0 ; net_driverlevel