From 5a21d8c24d4c89a0de993cd25138566beb6217d5 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 29 Oct 2009 00:53:31 -0700 Subject: [PATCH] Let SourceMod use OnUnlinkConCommandBase from MM:S 1.8 legacy API (bug 4080, r=ds). --- core/sourcemm_api.cpp | 2 +- core/sourcemm_api.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/sourcemm_api.cpp b/core/sourcemm_api.cpp index 916fa60f..385fc220 100644 --- a/core/sourcemm_api.cpp +++ b/core/sourcemm_api.cpp @@ -205,7 +205,7 @@ void SourceMod_Core::OnVSPListening(IServerPluginCallbacks *iface) } } -#if defined METAMOD_PLAPI_VERSION +#if defined METAMOD_PLAPI_VERSION || PLAPI_VERSION >= 11 void SourceMod_Core::OnUnlinkConCommandBase(PluginId id, ConCommandBase *pCommand) { diff --git a/core/sourcemm_api.h b/core/sourcemm_api.h index d4fb095a..f67a51e9 100644 --- a/core/sourcemm_api.h +++ b/core/sourcemm_api.h @@ -76,7 +76,7 @@ public: const char *GetLogTag(); public: void OnVSPListening(IServerPluginCallbacks *iface); -#if defined METAMOD_PLAPI_VERSION +#if defined METAMOD_PLAPI_VERSION || PLAPI_VERSION >= 11 void OnUnlinkConCommandBase(PluginId id, ConCommandBase *pCommand); #else void OnPluginUnload(PluginId id);