r1408 - trunk/code/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sat Jul 5 21:00:01 EDT 2008


Author: tma
Date: 2008-07-05 21:00:00 -0400 (Sat, 05 Jul 2008)
New Revision: 1408

Modified:
   trunk/code/server/sv_main.c
Log:
* In the dedicated binary, prevent setting dedicated cvar to 0


Modified: trunk/code/server/sv_main.c
===================================================================
--- trunk/code/server/sv_main.c	2008-07-06 00:31:52 UTC (rev 1407)
+++ trunk/code/server/sv_main.c	2008-07-06 01:00:00 UTC (rev 1408)
@@ -782,6 +782,14 @@
 		return;
 	}
 
+#ifdef DEDICATED
+	if( com_dedicated->integer == 0 )
+	{
+		Com_Printf( "WARNING: dedicated must not be 0. Setting to 1.\n" );
+		Cvar_Set( "dedicated", "1" );
+	}
+#endif
+
 	if (!com_sv_running->integer)
 	{
 		// Running as a server, but no map loaded




More information about the quake3-commits mailing list