From c3eeeaadcdc045aff49d3ea36c0dfa046e0598c2 Mon Sep 17 00:00:00 2001 From: east Date: Mon, 25 Aug 2014 16:53:11 +0200 Subject: [PATCH] don't render hooks to non-active character cores --- src/game/client/components/players.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/game/client/components/players.cpp b/src/game/client/components/players.cpp index 4814bf664..0ace257ae 100644 --- a/src/game/client/components/players.cpp +++ b/src/game/client/components/players.cpp @@ -234,6 +234,10 @@ void CPlayers::RenderHook( CNetObj_PlayerInfo pInfo = *pPlayerInfo; CTeeRenderInfo RenderInfo = m_aRenderInfo[pInfo.m_ClientID]; + // don't render hooks to not active character cores + if (pPlayerChar->m_HookedPlayer != -1 && !m_pClient->m_Snap.m_aCharacters[pPlayerChar->m_HookedPlayer].m_Active) + return; + float IntraTick = Client()->IntraGameTick(); bool OtherTeam;