core/sourcemm_api.cpp
changeset 1582 6f18465dd9f9
parent 1581 2562512b4a44
child 1583 1b92a3e4b962
     1.1 --- a/core/sourcemm_api.cpp	Mon Oct 15 22:15:22 2007 +0000
     1.2 +++ b/core/sourcemm_api.cpp	Tue Oct 16 01:17:08 2007 +0000
     1.3 @@ -33,7 +33,7 @@
     1.4  #include "sourcemm_api.h"
     1.5  #include "sm_version.h"
     1.6  #include "Logger.h"
     1.7 -#include "ConVarManager.h"
     1.8 +#include "concmd_cleaner.h"
     1.9  
    1.10  SourceMod_Core g_SourceMod_Core;
    1.11  IVEngineServer *engine = NULL;
    1.12 @@ -203,14 +203,18 @@
    1.13  	}
    1.14  }
    1.15  
    1.16 -#if PLAPI_VERSION >= 12
    1.17 +#if defined METAMOD_PLAPI_VERSION
    1.18 +
    1.19  void SourceMod_Core::OnUnlinkConCommandBase(PluginId id, ConCommandBase *pCommand)
    1.20  {
    1.21 -	g_ConVarManager.OnUnlinkConCommandBase(id, pCommand);
    1.22 +	Global_OnUnlinkConCommandBase(pCommand);
    1.23  }
    1.24 +
    1.25  #else
    1.26 +
    1.27  void SourceMod_Core::OnPluginUnload(PluginId id)
    1.28  {
    1.29 -	g_ConVarManager.OnMetamodPluginUnloaded(id);
    1.30 +	Global_OnUnlinkConCommandBase(NULL);
    1.31  }
    1.32 +
    1.33  #endif