r1212 - trunk/code/client

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Wed Nov 14 14:04:14 EST 2007


Author: ludwig
Date: 2007-11-14 14:04:12 -0500 (Wed, 14 Nov 2007)
New Revision: 1212

Modified:
   trunk/code/client/cl_main.c
Log:
make master server used by client configurable (cl_master)

patch by Erik Kloppenburg


Modified: trunk/code/client/cl_main.c
===================================================================
--- trunk/code/client/cl_main.c	2007-11-13 16:37:41 UTC (rev 1211)
+++ trunk/code/client/cl_main.c	2007-11-14 19:04:12 UTC (rev 1212)
@@ -36,6 +36,7 @@
 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 @@
 
 	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 @@
 	// -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;
 	}




More information about the quake3-commits mailing list