don't render hooks to non-active character cores

This commit is contained in:
east 2014-08-25 16:53:11 +02:00
parent 4311df0c62
commit c3eeeaadcd

View file

@ -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;