1.1 --- a/core/ConVarManager.h Sun Aug 25 11:59:48 2013 -0700
1.2 +++ b/core/ConVarManager.h Sun Aug 25 12:13:30 2013 -0700
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * vim: set ts=4 :
1.6 + * vim: set ts=4 sw=4 tw=99 noet :
1.7 * =============================================================================
1.8 * SourceMod
1.9 * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved.
1.10 @@ -65,6 +65,11 @@
1.11 IChangeableForward *pChangeForward; /**< Forward associated with convar */
1.12 ConVar *pVar; /**< The actual convar */
1.13 List<IConVarChangeListener *> changeListeners;
1.14 +
1.15 + static inline bool matches(const char *name, const ConVarInfo *info)
1.16 + {
1.17 + return strcmp(name, info->pVar->GetName()) == 0;
1.18 + }
1.19 };
1.20
1.21 /**