[quake3-commits] r2148 - in trunk/code: client qcommon
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Mon Aug 22 16:30:45 EDT 2011
Author: ztm
Date: 2011-08-22 16:30:45 -0400 (Mon, 22 Aug 2011)
New Revision: 2148
Modified:
trunk/code/client/cl_main.c
trunk/code/qcommon/qcommon.h
Log:
Disabled getting motd from update server in standalone build.
Modified: trunk/code/client/cl_main.c
===================================================================
--- trunk/code/client/cl_main.c 2011-08-11 20:57:39 UTC (rev 2147)
+++ trunk/code/client/cl_main.c 2011-08-22 20:30:45 UTC (rev 2148)
@@ -55,7 +55,9 @@
cvar_t *cl_debugMove;
cvar_t *cl_noprint;
+#ifdef UPDATE_SERVER_NAME
cvar_t *cl_motd;
+#endif
cvar_t *rcon_client_password;
cvar_t *rconAddress;
@@ -1522,6 +1524,7 @@
===================
*/
void CL_RequestMotd( void ) {
+#ifdef UPDATE_SERVER_NAME
char info[MAX_INFO_STRING];
if ( !cl_motd->integer ) {
@@ -1547,6 +1550,7 @@
Info_SetValueForKey( info, "version", com_version->string );
NET_OutOfBandPrint( NS_CLIENT, cls.updateServer, "getmotd \"%s\"\n", info );
+#endif
}
/*
@@ -2408,6 +2412,7 @@
===================
*/
void CL_MotdPacket( netadr_t from ) {
+#ifdef UPDATE_SERVER_NAME
char *challenge;
char *info;
@@ -2428,6 +2433,7 @@
Q_strncpyz( cls.updateInfoString, info, sizeof( cls.updateInfoString ) );
Cvar_Set( "cl_motdString", challenge );
+#endif
}
/*
@@ -3439,7 +3445,9 @@
// register our variables
//
cl_noprint = Cvar_Get( "cl_noprint", "0", 0 );
+#ifdef UPDATE_SERVER_NAME
cl_motd = Cvar_Get ("cl_motd", "1", 0);
+#endif
cl_timeout = Cvar_Get ("cl_timeout", "200", 0);
Modified: trunk/code/qcommon/qcommon.h
===================================================================
--- trunk/code/qcommon/qcommon.h 2011-08-11 20:57:39 UTC (rev 2147)
+++ trunk/code/qcommon/qcommon.h 2011-08-22 20:30:45 UTC (rev 2148)
@@ -260,7 +260,9 @@
// NOTE: that stuff only works with two digits protocols
extern int demo_protocols[];
+#if !defined UPDATE_SERVER_NAME && !defined STANDALONE
#define UPDATE_SERVER_NAME "update.quake3arena.com"
+#endif
// override on command line, config files etc.
#ifndef MASTER_SERVER_NAME
#define MASTER_SERVER_NAME "master.quake3arena.com"
More information about the quake3-commits
mailing list