diff options
author | ludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2007-11-14 19:04:12 +0000 |
---|---|---|
committer | ludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2007-11-14 19:04:12 +0000 |
commit | c81595127320e81aedc9bc34e24e636b600e5759 (patch) | |
tree | 057ff71f2c62a5bc11e683757f90227029acca44 /code/client | |
parent | 8c500a97bc0834642d676f857b2f35d7b8251696 (diff) | |
download | ioquake3-aero-c81595127320e81aedc9bc34e24e636b600e5759.tar.gz ioquake3-aero-c81595127320e81aedc9bc34e24e636b600e5759.zip |
make master server used by client configurable (cl_master)
patch by Erik Kloppenburg
git-svn-id: svn://svn.icculus.org/quake3/trunk@1212 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/client')
-rw-r--r-- | code/client/cl_main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/code/client/cl_main.c b/code/client/cl_main.c index 488c531..100cb3b 100644 --- a/code/client/cl_main.c +++ b/code/client/cl_main.c @@ -36,6 +36,7 @@ cvar_t *rconAddress; cvar_t *cl_timeout; cvar_t *cl_maxpackets; cvar_t *cl_packetdup; +cvar_t *cl_master; cvar_t *cl_timeNudge; cvar_t *cl_showTimeDelta; cvar_t *cl_freezeDemo; @@ -2665,6 +2666,7 @@ void CL_Init( void ) { cl_timeout = Cvar_Get ("cl_timeout", "200", 0); + cl_master = Cvar_Get ("cl_master", MASTER_SERVER_NAME, CVAR_ARCHIVE); cl_timeNudge = Cvar_Get ("cl_timeNudge", "0", CVAR_TEMP ); cl_shownet = Cvar_Get ("cl_shownet", "0", CVAR_TEMP ); cl_showSend = Cvar_Get ("cl_showSend", "0", CVAR_TEMP ); @@ -3269,12 +3271,12 @@ void CL_GlobalServers_f( void ) { // -1 is used to distinguish a "no response" if( cls.masterNum == 1 ) { - NET_StringToAdr( MASTER_SERVER_NAME, &to ); + NET_StringToAdr( cl_master->string, &to ); cls.nummplayerservers = -1; cls.pingUpdateSource = AS_MPLAYER; } else { - NET_StringToAdr( MASTER_SERVER_NAME, &to ); + NET_StringToAdr( cl_master->string, &to ); cls.numglobalservers = -1; cls.pingUpdateSource = AS_GLOBAL; } |