Remove the ability to compile against Metamod:Source versions lower than 1.8.

This commit is contained in:
David Anderson
2015-09-09 18:54:43 -07:00
parent c54b54ded0
commit df672dd8ce
7 changed files with 8 additions and 93 deletions
+2 -13
View File
@@ -482,7 +482,6 @@ static cell_t smn_IsPlayerAlive(IPluginContext *pContext, const cell_t *params)
static cell_t GuessSDKVersion(IPluginContext *pContext, const cell_t *params)
{
#if defined METAMOD_PLAPI_VERSION || PLAPI_VERSION >= 11
int version = g_SMAPI->GetSourceEngineBuild();
switch (version)
@@ -492,7 +491,7 @@ static cell_t GuessSDKVersion(IPluginContext *pContext, const cell_t *params)
case SOURCE_ENGINE_EPISODEONE:
return 20;
# if defined METAMOD_PLAPI_VERSION
#if defined METAMOD_PLAPI_VERSION
/* Newer games. */
case SOURCE_ENGINE_DARKMESSIAH:
return 15;
@@ -525,18 +524,8 @@ static cell_t GuessSDKVersion(IPluginContext *pContext, const cell_t *params)
return 80;
case SOURCE_ENGINE_DOTA:
return 90;
# endif
}
#else
if (g_HL2.IsOriginalEngine())
{
return 10;
}
else
{
return 20;
}
#endif
}
return 0;
}