From fe8dc360742ae5c70cc53a740ebd7868fcdd445a Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 20 Nov 2009 15:18:58 -0600 Subject: [PATCH] Use GetVSPInfo() from MM:S 1.8 legacy API (bug 4081, r=ds). --- core/sourcemm_api.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/sourcemm_api.cpp b/core/sourcemm_api.cpp index 385fc220..edaa615b 100644 --- a/core/sourcemm_api.cpp +++ b/core/sourcemm_api.cpp @@ -87,7 +87,7 @@ bool SourceMod_Core::Load(PluginId id, ISmmAPI *ismm, char *error, size_t maxlen ismm->AddListener(this, this); -#if defined METAMOD_PLAPI_VERSION +#if defined METAMOD_PLAPI_VERSION || PLAPI_VERSION >= 11 if ((vsp_interface = g_SMAPI->GetVSPInfo(&vsp_version)) == NULL) #endif { @@ -177,7 +177,7 @@ void SourceMod_Core::OnVSPListening(IServerPluginCallbacks *iface) return; } -#if defined METAMOD_PLAPI_VERSION +#if defined METAMOD_PLAPI_VERSION || PLAPI_VERSION >= 11 if (vsp_version == 0) { g_SMAPI->GetVSPInfo(&vsp_version);