From: havoc Date: Fri, 28 Mar 2003 15:43:52 +0000 (+0000) Subject: added developer_networking cvar X-Git-Tag: xonotic-v0.1.0preview~6700 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c03faf25dce4debc2b308ba5b43b76c264008f7f;p=xonotic%2Fdarkplaces.git added developer_networking cvar git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2871 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/net.h b/net.h index 5a1d7fd4..386379ab 100644 --- 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; diff --git a/net_main.c b/net_main.c index 0d085bbe..9b5d5566 100644 --- a/net_main.c +++ b/net_main.c @@ -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);