From 905bdb92f8a4d23a2ed3235dae71129620ae467c Mon Sep 17 00:00:00 2001 From: Jenny White Date: Sat, 28 Apr 2018 17:07:23 +0300 Subject: [PATCH] ditto for ENABLE_IPC --- src/hack.cpp | 2 +- src/hacks/AutoHeal.cpp | 2 +- src/hacks/ESP.cpp | 2 +- src/ipc.cpp | 2 +- src/visual/drawmgr.cpp | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/hack.cpp b/src/hack.cpp index 09baaa1a..3d6b2787 100644 --- a/src/hack.cpp +++ b/src/hack.cpp @@ -42,7 +42,7 @@ const std::string &hack::GetType() if (version_set) return version; version = ""; -#if not defined(ENABLE_IPC) +#if not ENABLE_IPC version += " NOIPC"; #endif #if not ENABLE_GUI diff --git a/src/hacks/AutoHeal.cpp b/src/hacks/AutoHeal.cpp index f4326464..5aa02ebe 100755 --- a/src/hacks/AutoHeal.cpp +++ b/src/hacks/AutoHeal.cpp @@ -552,7 +552,7 @@ int HealingPriority(int idx) priority += 50 * (1 - healthp); priority += 10 * (1 - overhealp); } -#if ENABLE_IPC == 1 +#if ENABLE_IPC if (ipc::peer) { if (hacks::shared::followbot::followbot && diff --git a/src/hacks/ESP.cpp b/src/hacks/ESP.cpp index 670ba98d..43e9f65b 100644 --- a/src/hacks/ESP.cpp +++ b/src/hacks/ESP.cpp @@ -1173,7 +1173,7 @@ void _FASTCALL ProcessEntity(CachedEntity *ent) AddEntityString(ent, classes[pclass - 1]); } -#if ENABLE_IPC == 1 +#if ENABLE_IPC // ipc bot esp if (show_bot_id && ipc::peer && ent != LOCAL_E) { diff --git a/src/ipc.cpp b/src/ipc.cpp index afcde677..b5d02af7 100755 --- a/src/ipc.cpp +++ b/src/ipc.cpp @@ -11,7 +11,7 @@ #include "hack.hpp" #include "hitrate.hpp" -#if ENABLE_IPC == 1 +#if ENABLE_IPC namespace ipc { diff --git a/src/visual/drawmgr.cpp b/src/visual/drawmgr.cpp index 98853595..96340e1c 100644 --- a/src/visual/drawmgr.cpp +++ b/src/visual/drawmgr.cpp @@ -144,7 +144,7 @@ void DrawCheatVisuals() PROF_SECTION(PT_spyalert); hacks::tf::spyalert::Draw(); } -#if ENABLE_IPC == 1 +#if ENABLE_IPC IF_GAME(IsTF()) hacks::shared::followbot::DrawTick(); #endif {