From a3f7248990e14ab3c3b3d6ef79e784e48271f908 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 26 Jun 2007 18:34:06 +0000 Subject: [PATCH] cvar exclusion hack -- amb468 --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401025 --- core/CoreConfig.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/core/CoreConfig.cpp b/core/CoreConfig.cpp index b8db4786..933aa30d 100644 --- a/core/CoreConfig.cpp +++ b/core/CoreConfig.cpp @@ -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;