From 4430544a953b14fb15c422c9fe6347e159d74dba Mon Sep 17 00:00:00 2001 From: TotallyNotElite <38938720+TotallyNotElite@users.noreply.github.com> Date: Wed, 5 Dec 2018 11:37:43 +0100 Subject: [PATCH] #if ENABLE_VISUALS --- src/hacks/CatBot.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hacks/CatBot.cpp b/src/hacks/CatBot.cpp index 33b1a1a4..8941c1da 100644 --- a/src/hacks/CatBot.cpp +++ b/src/hacks/CatBot.cpp @@ -461,6 +461,7 @@ void level_init() { level_init_timer.update(); } +#if ENABLE_VISUALS static HookedFunction Paint(HookedFunctions_types::HF_Draw, "anti_motd_info", 3, [](){ if (!catbotmode || !anti_motd) return; @@ -469,4 +470,5 @@ static HookedFunction Paint(HookedFunctions_types::HF_Draw, "anti_motd_info", 3, AddCenterString(health, colors::green); AddCenterString(ammo, colors::yellow); }); +#endif } // namespace hacks::shared::catbot