|
|
@ -900,9 +900,7 @@ cvar_t *pfnCvar_RegisterClientVariable( const char *szName, const char *szValue, |
|
|
|
if( !Q_stricmp( szName, "motdfile" )) |
|
|
|
if( !Q_stricmp( szName, "motdfile" )) |
|
|
|
flags |= FCVAR_PRIVILEGED; |
|
|
|
flags |= FCVAR_PRIVILEGED; |
|
|
|
|
|
|
|
|
|
|
|
if( FBitSet( flags, FCVAR_GLCONFIG )) |
|
|
|
return (cvar_t *)Cvar_Get( szName, szValue, flags|FCVAR_CLIENTDLL, Cvar_BuildAutoDescription( szName, flags|FCVAR_CLIENTDLL )); |
|
|
|
return (cvar_t *)Cvar_Get( szName, szValue, flags, va( CVAR_GLCONFIG_DESCRIPTION, szName )); |
|
|
|
|
|
|
|
return (cvar_t *)Cvar_Get( szName, szValue, flags|FCVAR_CLIENTDLL, Cvar_BuildAutoDescription( flags|FCVAR_CLIENTDLL )); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
/*
|
|
|
@ -913,9 +911,7 @@ pfnCvar_RegisterVariable |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
cvar_t *pfnCvar_RegisterGameUIVariable( const char *szName, const char *szValue, int flags ) |
|
|
|
cvar_t *pfnCvar_RegisterGameUIVariable( const char *szName, const char *szValue, int flags ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if( FBitSet( flags, FCVAR_GLCONFIG )) |
|
|
|
return (cvar_t *)Cvar_Get( szName, szValue, flags|FCVAR_GAMEUIDLL, Cvar_BuildAutoDescription( szName, flags|FCVAR_GAMEUIDLL )); |
|
|
|
return (cvar_t *)Cvar_Get( szName, szValue, flags, va( CVAR_GLCONFIG_DESCRIPTION, szName )); |
|
|
|
|
|
|
|
return (cvar_t *)Cvar_Get( szName, szValue, flags|FCVAR_GAMEUIDLL, Cvar_BuildAutoDescription( flags|FCVAR_GAMEUIDLL )); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|