mirror of
https://github.com/UberGames/ioef.git
synced 2025-01-18 15:11:41 +00:00
* That probably deserves a Com_DPrintf as well
This commit is contained in:
parent
bb30f51f67
commit
e7f9b8d193
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue