Fixed GuessSDKVersion output on CS:S with MM:S 1.9+ (r=asherkin).

This commit is contained in:
Nicholas Hastings 2012-08-23 13:55:48 -04:00
parent 0d6b93c5a0
commit 3f43fca3a9

View File

@ -451,6 +451,10 @@ static cell_t smn_IsPlayerAlive(IPluginContext *pContext, const cell_t *params)
}
}
#ifndef SOURCE_ENGINE_CSS
#define SOURCE_ENGINE_CSS 13
#endif
static cell_t GuessSDKVersion(IPluginContext *pContext, const cell_t *params)
{
#if defined METAMOD_PLAPI_VERSION || PLAPI_VERSION >= 11
@ -473,6 +477,7 @@ static cell_t GuessSDKVersion(IPluginContext *pContext, const cell_t *params)
return 32;
case SOURCE_ENGINE_EYE:
return 33;
case SOURCE_ENGINE_CSS:
case SOURCE_ENGINE_ORANGEBOXVALVE:
return 35;
case SOURCE_ENGINE_LEFT4DEAD: