From d2d273b6e017d45bccc3f70f2ff7374fe111e1fa Mon Sep 17 00:00:00 2001 From: Tater Date: Sun, 23 Jul 2023 15:41:23 -0500 Subject: [PATCH] Respect ALLOW_HOOK_COLL flag --- src/game/client/components/players.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/client/components/players.cpp b/src/game/client/components/players.cpp index 138304357..0ab994cf4 100644 --- a/src/game/client/components/players.cpp +++ b/src/game/client/components/players.cpp @@ -156,7 +156,7 @@ void CPlayers::RenderHookCollLine( { bool AlwaysRenderHookColl = GameClient()->m_GameInfo.m_AllowHookColl && (Local ? g_Config.m_ClShowHookCollOwn : g_Config.m_ClShowHookCollOther) == 2; bool RenderHookCollPlayer = ClientID >= 0 && Player.m_PlayerFlags & PLAYERFLAG_AIM && (Local ? g_Config.m_ClShowHookCollOwn : g_Config.m_ClShowHookCollOther) > 0; - if(Local && Client()->State() != IClient::STATE_DEMOPLAYBACK) + if(Local && GameClient()->m_GameInfo.m_AllowHookColl && Client()->State() != IClient::STATE_DEMOPLAYBACK) RenderHookCollPlayer = GameClient()->m_Controls.m_aShowHookColl[g_Config.m_ClDummy] && g_Config.m_ClShowHookCollOwn > 0; bool RenderHookCollVideo = true;