mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
don't render hooks to non-active character cores
This commit is contained in:
parent
4311df0c62
commit
c3eeeaadcd
|
@ -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