[quake3-commits] r1761 - trunk/code/qcommon

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sun Jan 3 17:07:23 EST 2010


Author: tma
Date: 2010-01-03 17:07:20 -0500 (Sun, 03 Jan 2010)
New Revision: 1761

Modified:
   trunk/code/qcommon/cvar.c
Log:
* That probably deserves a Com_DPrintf as well


Modified: trunk/code/qcommon/cvar.c
===================================================================
--- trunk/code/qcommon/cvar.c	2010-01-03 19:44:37 UTC (rev 1760)
+++ trunk/code/qcommon/cvar.c	2010-01-03 22:07:20 UTC (rev 1761)
@@ -1168,8 +1168,11 @@
 	// user. In other words CVAR_ARCHIVE and CVAR_ROM are mutually exclusive
 	// flags. Unfortunately some historical game code (including single player
 	// baseq3) sets both flags. We unset CVAR_ROM for such cvars.
-	if ((flags & (CVAR_ARCHIVE | CVAR_ROM)) == (CVAR_ARCHIVE | CVAR_ROM))
+	if ((flags & (CVAR_ARCHIVE | CVAR_ROM)) == (CVAR_ARCHIVE | CVAR_ROM)) {
+		Com_DPrintf( S_COLOR_YELLOW "WARNING: Unsetting CVAR_ROM cvar '%s', "
+			"since it is also CVAR_ARCHIVE\n", varName );
 		flags &= ~CVAR_ROM;
+	}
 
 	cv = Cvar_Get(varName, defaultValue, flags | CVAR_VM_CREATED);
 



More information about the quake3-commits mailing list