Use GetVSPInfo() from MM:S 1.8 legacy API (bug 4081, r=ds).
This commit is contained in:
parent
0cef3fbf27
commit
fe8dc36074
@ -87,7 +87,7 @@ bool SourceMod_Core::Load(PluginId id, ISmmAPI *ismm, char *error, size_t maxlen
|
|||||||
|
|
||||||
ismm->AddListener(this, this);
|
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)
|
if ((vsp_interface = g_SMAPI->GetVSPInfo(&vsp_version)) == NULL)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
@ -177,7 +177,7 @@ void SourceMod_Core::OnVSPListening(IServerPluginCallbacks *iface)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined METAMOD_PLAPI_VERSION
|
#if defined METAMOD_PLAPI_VERSION || PLAPI_VERSION >= 11
|
||||||
if (vsp_version == 0)
|
if (vsp_version == 0)
|
||||||
{
|
{
|
||||||
g_SMAPI->GetVSPInfo(&vsp_version);
|
g_SMAPI->GetVSPInfo(&vsp_version);
|
||||||
|
Loading…
Reference in New Issue
Block a user