From 184ad9083ce592e310e56381b6bc8db67d1d6bbc Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Tue, 22 Dec 2015 09:54:55 -0500 Subject: [PATCH] Fix for varint gamerules sendprops being treated improperly in Black Mesa. --- extensions/sdktools/gamerulesnatives.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/extensions/sdktools/gamerulesnatives.cpp b/extensions/sdktools/gamerulesnatives.cpp index 3c4f6041..e08dce73 100644 --- a/extensions/sdktools/gamerulesnatives.cpp +++ b/extensions/sdktools/gamerulesnatives.cpp @@ -176,7 +176,8 @@ static cell_t GameRules_GetProp(IPluginContext *pContext, const cell_t *params) is_unsigned = ((pProp->GetFlags() & SPROP_UNSIGNED) == SPROP_UNSIGNED); // This isn't in CS:S yet, but will be, doesn't hurt to add now, and will save us a build later -#if SOURCE_ENGINE == SE_CSS || SOURCE_ENGINE == SE_HL2DM || SOURCE_ENGINE == SE_DODS || SOURCE_ENGINE == SE_TF2 +#if SOURCE_ENGINE == SE_CSS || SOURCE_ENGINE == SE_HL2DM || SOURCE_ENGINE == SE_DODS || SOURCE_ENGINE == SE_TF2 \ + || SOURCE_ENGINE == SE_SDK2013 || SOURCE_ENGINE == SE_BMS if (pProp->GetFlags() & SPROP_VARINT) { bit_count = sizeof(int) * 8; @@ -245,7 +246,8 @@ static cell_t GameRules_SetProp(IPluginContext *pContext, const cell_t *params) FIND_PROP_SEND(DPT_Int, "integer"); -#if SOURCE_ENGINE == SE_CSS || SOURCE_ENGINE == SE_HL2DM || SOURCE_ENGINE == SE_DODS || SOURCE_ENGINE == SE_TF2 +#if SOURCE_ENGINE == SE_CSS || SOURCE_ENGINE == SE_HL2DM || SOURCE_ENGINE == SE_DODS || SOURCE_ENGINE == SE_TF2 \ + || SOURCE_ENGINE == SE_SDK2013 || SOURCE_ENGINE == SE_BMS if (pProp->GetFlags() & SPROP_VARINT) { bit_count = sizeof(int) * 8;