diff --git a/src/engine/client/serverbrowser.cpp b/src/engine/client/serverbrowser.cpp index 22939fe1f..681b71e86 100644 --- a/src/engine/client/serverbrowser.cpp +++ b/src/engine/client/serverbrowser.cpp @@ -550,7 +550,9 @@ void CServerBrowser::SetInfo(CServerEntry *pEntry, const CServerInfo &Info) cons mem_copy(pEntry->m_Info.m_aAddresses, TmpInfo.m_aAddresses, sizeof(pEntry->m_Info.m_aAddresses)); pEntry->m_Info.m_NumAddresses = TmpInfo.m_NumAddresses; ServerBrowserFormatAddresses(pEntry->m_Info.m_aAddress, sizeof(pEntry->m_Info.m_aAddress), pEntry->m_Info.m_aAddresses, pEntry->m_Info.m_NumAddresses); - UpdateServerCommunity(&pEntry->m_Info); + str_copy(pEntry->m_Info.m_aCommunityId, TmpInfo.m_aCommunityId); + str_copy(pEntry->m_Info.m_aCommunityCountry, TmpInfo.m_aCommunityCountry); + str_copy(pEntry->m_Info.m_aCommunityType, TmpInfo.m_aCommunityType); UpdateServerRank(&pEntry->m_Info); if(pEntry->m_Info.m_ClientScoreKind == CServerInfo::CLIENT_SCORE_KIND_UNSPECIFIED) @@ -662,6 +664,7 @@ CServerBrowser::CServerEntry *CServerBrowser::Add(const NETADDR *pAddrs, int Num pEntry->m_Info.m_Latency = 999; pEntry->m_Info.m_HasRank = CServerInfo::RANK_UNAVAILABLE; ServerBrowserFormatAddresses(pEntry->m_Info.m_aAddress, sizeof(pEntry->m_Info.m_aAddress), pEntry->m_Info.m_aAddresses, pEntry->m_Info.m_NumAddresses); + UpdateServerCommunity(&pEntry->m_Info); str_copy(pEntry->m_Info.m_aName, pEntry->m_Info.m_aAddress, sizeof(pEntry->m_Info.m_aName)); // check if it's a favorite