]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
added developer_networking cvar
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 28 Mar 2003 15:43:52 +0000 (15:43 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 28 Mar 2003 15:43:52 +0000 (15:43 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2871 d7cf8633-e32d-0410-b094-e92efae38249

net.h
net_main.c

diff --git a/net.h b/net.h
index 5a1d7fd4bfdacd5e4cadbc87caeaf15b2e31f889..386379ab7bbaa7a6ccf7364fadb150c11d9694f7 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;
 
index 0d085bbe1e853eaf91409ab7620f9d76849845fb..9b5d556673bcf27672cfd9017c449d64a1d8ddff 100644 (file)
@@ -63,6 +63,7 @@ int unreliableMessagesReceived = 0;
 
 cvar_t net_messagetimeout = {0, "net_messagetimeout","300"};
 cvar_t hostname = {CVAR_SAVE, "hostname", "UNNAMED"};
+cvar_t developer_networking = {0, "developer_networking", "0"};
 
 qboolean       configRestored = false;
 
@@ -889,6 +890,7 @@ void NET_Init (void)
 
        Cvar_RegisterVariable (&net_messagetimeout);
        Cvar_RegisterVariable (&hostname);
+       Cvar_RegisterVariable (&developer_networking);
 
        Cmd_AddCommand ("net_slist", NET_Slist_f);
        Cmd_AddCommand ("net_inetslist", NET_InetSlist_f);