another improvement

This commit is contained in:
Ryozuki 2018-10-02 14:35:50 +02:00
parent 7efe2b436e
commit e21a08f700

View file

@ -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));