| 1657 | } |
| 1658 | |
| 1659 | void CServerBrowser::UpdateServerCommunity(CServerInfo *pInfo) const |
| 1660 | { |
| 1661 | for(int AddressIndex = 0; AddressIndex < pInfo->m_NumAddresses; AddressIndex++) |
| 1662 | { |
| 1663 | const auto Community = m_CommunityServersByAddr.find(CommunityAddressKey(pInfo->m_aAddresses[AddressIndex])); |
| 1664 | if(Community != m_CommunityServersByAddr.end()) |
| 1665 | { |
| 1666 | str_copy(pInfo->m_aCommunityId, Community->second.CommunityId()); |
| 1667 | str_copy(pInfo->m_aCommunityCountry, Community->second.CountryName()); |
| 1668 | str_copy(pInfo->m_aCommunityType, Community->second.TypeName()); |
| 1669 | return; |
| 1670 | } |
| 1671 | } |
| 1672 | str_copy(pInfo->m_aCommunityId, COMMUNITY_NONE); |
| 1673 | str_copy(pInfo->m_aCommunityCountry, COMMUNITY_COUNTRY_NONE); |
| 1674 | str_copy(pInfo->m_aCommunityType, COMMUNITY_TYPE_NONE); |
| 1675 | } |
| 1676 | |
| 1677 | void CServerBrowser::UpdateServerRank(CServerInfo *pInfo) const |
| 1678 | { |
no test coverage detected