]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - net.h
fix an uninitialized variable warning in win32
[xonotic/darkplaces.git] / net.h
diff --git a/net.h b/net.h
index 8323b2054c7baa6c21ff4adeb652f3af128d6a73..4a69b87201a9f3fd71c0abcd119a4f47c59e547a 100644 (file)
--- a/net.h
+++ b/net.h
@@ -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.
 
@@ -213,6 +213,7 @@ extern int                  net_hostport;
 
 extern int net_driverlevel;
 extern cvar_t          hostname;
+extern cvar_t          developer_networking;
 extern char                    playername[];
 extern int                     playercolor;
 
@@ -226,18 +227,18 @@ void NET_FreeQSocket(qsocket_t *);
 double SetNetTime(void);
 
 
-#define HOSTCACHESIZE  8
+#define HOSTCACHESIZE  128
 
 typedef struct
 {
-       char    name[16];
-       char    map[16];
-       char    cname[32];
+       char    name[64];
+       char    map[64];
+       char    cname[64];
        int             users;
        int             maxusers;
-       int             driver;
-       int             ldriver;
-       struct qsockaddr addr;
+       //int           driver;
+       //int           ldriver;
+       //struct qsockaddr addr;
 } hostcache_t;
 
 extern int hostCacheCount;
@@ -333,8 +334,6 @@ extern      qboolean        slistInProgress;
 extern qboolean        slistSilent;
 extern qboolean        slistLocal;
 
-extern cvar_t hostname;
-
 void NET_Slist_f (void);
 void NET_InetSlist_f (void);