Use GetSourceEngineBuild() from MM:S 1.8 legacy API (bug 4083, r=ds).

This commit is contained in:
David Anderson
2009-10-29 01:33:57 -07:00
parent 5a21d8c24d
commit 8a8bafb199
4 changed files with 19 additions and 20 deletions
+1 -1
View File
@@ -182,7 +182,7 @@ void ConVarManager::OnSourceModVSPReceived()
}
/* For later MM:S versions, use the updated API, since it's cleaner. */
#if defined METAMOD_PLAPI_VERSION
#if defined METAMOD_PLAPI_VERSION || PLAPI_VERSION >= 11
int engine = g_SMAPI->GetSourceEngineBuild();
if (engine == SOURCE_ENGINE_ORIGINAL || vsp_version < 2)
{