From 3f43fca3a9f72ead63af84c21a089fc27bd430ae Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Thu, 23 Aug 2012 13:55:48 -0400 Subject: [PATCH] Fixed GuessSDKVersion output on CS:S with MM:S 1.9+ (r=asherkin). --- core/smn_halflife.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/smn_halflife.cpp b/core/smn_halflife.cpp index 16d7f30a..ac204194 100644 --- a/core/smn_halflife.cpp +++ b/core/smn_halflife.cpp @@ -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: