From a07850d09da1810fc6985b19f77df891c1b44e48 Mon Sep 17 00:00:00 2001 From: jeefo Date: Mon, 4 Jan 2016 20:18:14 +0300 Subject: [PATCH] bumped version to 2.7.2 --- include/resource.h | 4 ++-- project/yapb.vcxproj | 4 ++-- source/navigate.cpp | 10 +++++----- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/include/resource.h b/include/resource.h index a7a3bb6..de10d08 100644 --- a/include/resource.h +++ b/include/resource.h @@ -11,7 +11,7 @@ // general product information #define PRODUCT_NAME "Yet Another POD-Bot" -#define PRODUCT_VERSION "2.7.1" +#define PRODUCT_VERSION "2.7.2" #define PRODUCT_AUTHOR "YaPB Dev Team" #define PRODUCT_URL "https://yapb.jeefo.net" #define PRODUCT_EMAIL "dmitry@jeefo.net" @@ -21,7 +21,7 @@ #define PRODUCT_LEGAL "Half-Life, Counter-Strike, Counter-Strike: Condition Zero, Steam, Valve is a trademark of Valve Corporation" #define PRODUCT_ORIGINAL_NAME "yapb.dll" #define PRODUCT_INTERNAL_NAME "skybot" -#define PRODUCT_VERSION_DWORD_INTERNAL 2,7,1 +#define PRODUCT_VERSION_DWORD_INTERNAL 2,7,2 #define PRODUCT_VERSION_DWORD PRODUCT_VERSION_DWORD_INTERNAL,0 #define PRODUCT_SUPPORT_VERSION "1.0 - CZ" #define PRODUCT_COMMENTS "http://github.com/jeefo/yapb/" diff --git a/project/yapb.vcxproj b/project/yapb.vcxproj index d8ed05f..c308152 100644 --- a/project/yapb.vcxproj +++ b/project/yapb.vcxproj @@ -54,12 +54,12 @@ DynamicLibrary - v120_xp + v140_xp false DynamicLibrary - v120_xp + v140_xp false diff --git a/source/navigate.cpp b/source/navigate.cpp index 93e518c..5bf580b 100644 --- a/source/navigate.cpp +++ b/source/navigate.cpp @@ -2622,7 +2622,7 @@ bool Bot::CanStrafeLeft (TraceResult *tr) TraceLine (src, left, true, GetEntity (), tr); // check if the trace hit something... - if (tr->flFraction <= TRACE_FRACTION_EQ) + if (tr->flFraction < 1.0f) return false; // bot's body will hit something src = left; @@ -2632,7 +2632,7 @@ bool Bot::CanStrafeLeft (TraceResult *tr) TraceLine (src, left, true, GetEntity (), tr); // check if the trace hit something... - if (tr->flFraction <= TRACE_FRACTION_EQ) + if (tr->flFraction < 1.0f) return false; // bot's body will hit something return true; @@ -2651,7 +2651,7 @@ bool Bot::CanStrafeRight (TraceResult * tr) TraceLine (src, right, true, GetEntity (), tr); // check if the trace hit something... - if (tr->flFraction <= TRACE_FRACTION_EQ) + if (tr->flFraction < 1.0f) return false; // bot's body will hit something src = right; @@ -2661,7 +2661,7 @@ bool Bot::CanStrafeRight (TraceResult * tr) TraceLine (src, right, true, GetEntity (), tr); // check if the trace hit something... - if (tr->flFraction <= TRACE_FRACTION_EQ) + if (tr->flFraction < 1.0f) return false; // bot's body will hit something return true; @@ -2950,7 +2950,7 @@ bool Bot::IsDeadlyDrop (const Vector &to) TraceHull (check, down, true, head_hull, GetEntity (), &tr); - if (tr.flFraction > 0.036f) // We're not on ground anymore? + if (tr.flFraction > 0.036f) // we're not on ground anymore? tr.flFraction = 0.036f; float lastHeight = tr.flFraction * 1000.0f; // height from ground