From dc3a98fc2b8617cb2de044a7cb74667c289742fd Mon Sep 17 00:00:00 2001 From: BenCat07 Date: Fri, 22 May 2020 22:11:20 +0200 Subject: [PATCH] Fix some textmode issues --- include/crits.hpp | 1 + src/hack.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/crits.hpp b/include/crits.hpp index 6daf3508..711464f7 100644 --- a/include/crits.hpp +++ b/include/crits.hpp @@ -1,6 +1,7 @@ #pragma once #include "settings/Bool.hpp" #include "usercmd.hpp" +#include namespace criticals { extern settings::Boolean enabled; diff --git a/src/hack.cpp b/src/hack.cpp index b455f3d6..8c9daead 100644 --- a/src/hack.cpp +++ b/src/hack.cpp @@ -197,10 +197,10 @@ void hack::Hook() hooks::panel.Apply(); #endif -#if ENABLE_VISUALS hooks::vstd.Set((void *) g_pUniformStream); hooks::vstd.HookMethod(HOOK_ARGS(RandomInt)); hooks::vstd.Apply(); +#if ENABLE_VISUALS auto chat_hud = g_CHUD->FindElement("CHudChat"); while (!(chat_hud = g_CHUD->FindElement("CHudChat")))