mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
another improvement
This commit is contained in:
parent
7efe2b436e
commit
e21a08f700
|
@ -1225,17 +1225,14 @@ void CGameClient::OnNewSnapshot()
|
|||
}
|
||||
}
|
||||
|
||||
// update friend state
|
||||
for(int i = 0; i < MAX_CLIENTS; ++i)
|
||||
{
|
||||
// update friend state
|
||||
m_aClients[i].m_Friend = !(i == m_Snap.m_LocalClientID
|
||||
|| !m_Snap.m_paPlayerInfos[i]
|
||||
|| !Friends()->IsFriend(m_aClients[i].m_aName, m_aClients[i].m_aClan, true));
|
||||
}
|
||||
|
||||
// update foe state
|
||||
for(int i = 0; i < MAX_CLIENTS; ++i)
|
||||
{
|
||||
m_aClients[i].m_Foe = !(i == m_Snap.m_LocalClientID
|
||||
|| !m_Snap.m_paPlayerInfos[i]
|
||||
|| !Foes()->IsFriend(m_aClients[i].m_aName, m_aClients[i].m_aClan, true));
|
||||
|
|
Loading…
Reference in a new issue