core/CConVarManager.cpp
changeset 494 9b57583cc80b
parent 487 3410298035cb
child 499 961a75a6d466
     1.1 --- a/core/CConVarManager.cpp	Wed Feb 14 17:49:18 2007 +0000
     1.2 +++ b/core/CConVarManager.cpp	Wed Feb 14 23:44:40 2007 +0000
     1.3 @@ -372,6 +372,13 @@
     1.4  
     1.5  void CConVarManager::OnConVarChanged(ConVar *cvar, const char *oldValue)
     1.6  {
     1.7 +	// If the values are the same...
     1.8 +	if (strcmp(cvar->GetString(), oldValue) == 0)
     1.9 +	{
    1.10 +		// Exit early in order to not trigger callbacks
    1.11 +		return;
    1.12 +	}
    1.13 +
    1.14  	Trie *cache = g_ConVarManager.GetConVarCache();
    1.15  	ConVarInfo *info;
    1.16