Merge pull request #16 from east/ddnet

don't render hooks to non-active character cores
This commit is contained in:
Dennis Felsing 2014-08-25 16:56:25 +02:00
commit fa750bd032

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;