Merge pull request #1023 from nullworks/textmode_fixes

Fix some textmode issues
This commit is contained in:
LightCat 2020-05-22 22:26:24 +02:00 committed by GitHub
commit d41ae87553
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
#pragma once
#include "settings/Bool.hpp"
#include "usercmd.hpp"
#include <map>
namespace criticals
{
extern settings::Boolean enabled;

View File

@ -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")))