From 0bde57897eb34b89a75f20e1078bfdf0a2cf68f1 Mon Sep 17 00:00:00 2001 From: jeefo Date: Sat, 30 Jan 2016 22:22:37 +0300 Subject: [PATCH] fixed cs16-client+xash3d on non-android platforms compatability disables debug information for release builds --- project/yapb.vcxproj | 2 +- source/manager.cpp | 2 -- source/support.cpp | 9 +++++++++ 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/project/yapb.vcxproj b/project/yapb.vcxproj index ac716f6..1b089e6 100644 --- a/project/yapb.vcxproj +++ b/project/yapb.vcxproj @@ -224,7 +224,7 @@ .\release\yapb.dll true user32.dll;ws2_32.dll;%(DelayLoadDLLs) - Debug + No false Windows false diff --git a/source/manager.cpp b/source/manager.cpp index 6bb28b1..22ab50b 100644 --- a/source/manager.cpp +++ b/source/manager.cpp @@ -1267,8 +1267,6 @@ void Bot::Kick (void) ServerCommand ("kick \"%s\"", STRING (pev->netname)); CenterPrint ("Bot '%s' kicked", STRING (pev->netname)); - pev->flags |= FL_KILLME; - int newBotsNum = bots.GetBotsNum () - 1; // keep quota number up to date diff --git a/source/support.cpp b/source/support.cpp index 13ea68f..e78b831 100644 --- a/source/support.cpp +++ b/source/support.cpp @@ -1050,6 +1050,15 @@ void DetectCSVersion (void) if (g_gameVersion == CSV_OLD || g_gameVersion == CSV_CZERO) return; + // detect xash engine + if (g_engfuncs.pfnCVarGetPointer ("build") != NULL) + { + AddLogEntry (true, LL_DEFAULT, "Detected Xash3D Engine. Setting game version to old."); + g_gameVersion = CSV_OLD; + + return; + } + // counter-strike 1.6 or higher (plus detects for non-steam versions of 1.5) byte *detection = (*g_engfuncs.pfnLoadFileForMe) ("events/galil.sc", NULL);