mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-12 19:18:20 +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;
|
CNetObj_PlayerInfo pInfo = *pPlayerInfo;
|
||||||
CTeeRenderInfo RenderInfo = m_aRenderInfo[pInfo.m_ClientID];
|
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();
|
float IntraTick = Client()->IntraGameTick();
|
||||||
|
|
||||||
bool OtherTeam;
|
bool OtherTeam;
|
||||||
|
|
Loading…
Reference in a new issue