mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Merge pull request #16 from east/ddnet
don't render hooks to non-active character cores
This commit is contained in:
commit
fa750bd032
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue