diff --git a/code/qcommon/cvar.c b/code/qcommon/cvar.c index 06e77231..3558f0f4 100644 --- a/code/qcommon/cvar.c +++ b/code/qcommon/cvar.c @@ -1168,8 +1168,11 @@ void Cvar_Register(vmCvar_t *vmCvar, const char *varName, const char *defaultVal // 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);