MCPcopy Create free account
hub / github.com/ddnet/ddnet / UpdateServerRank

Method UpdateServerRank

src/engine/client/serverbrowser.cpp:1677–1681  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1675}
1676
1677void CServerBrowser::UpdateServerRank(CServerInfo *pInfo) const
1678{
1679 const CCommunity *pCommunity = Community(pInfo->m_aCommunityId);
1680 pInfo->m_HasRank = pCommunity == nullptr ? CServerInfo::RANK_UNAVAILABLE : pCommunity->HasRank(pInfo->m_aMap);
1681}
1682
1683void CServerBrowser::ValidateServerlistType()
1684{

Callers 1

ProcessServerInfoMethod · 0.80

Calls 1

HasRankMethod · 0.80

Tested by

no test coverage detected