cvar exclusion hack -- amb468

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401025
This commit is contained in:
David Anderson 2007-06-26 18:34:06 +00:00
parent 271a8b5b56
commit a3f7248990

View File

@ -247,7 +247,14 @@ bool SM_ExecuteConfig(CPlugin *pl, AutoConfig *cfg, bool can_create)
float x;
for (iter = convars->begin(); iter != convars->end(); iter++)
{
const ConVar *cvar = (*iter);
//:TODO: GetFlags should probably be const so we don't have to do this!
ConVar *cvar = (ConVar *)(*iter);
if ((cvar->GetFlags() & FCVAR_DONTRECORD) == FCVAR_DONTRECORD)
{
continue;
}
char descr[255];
char *dptr = descr;