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

Method HasRank

src/engine/client/serverbrowser.cpp:1765–1771  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1763}
1764
1765CServerInfo::ERankState CCommunity::HasRank(const char *pMap) const
1766{
1767 if(!HasRanks())
1768 return CServerInfo::RANK_UNAVAILABLE;
1769 const CCommunityMap Needle(pMap);
1770 return !m_FinishedMaps.contains(Needle) ? CServerInfo::RANK_UNRANKED : CServerInfo::RANK_RANKED;
1771}
1772
1773const std::vector<CCommunity> &CServerBrowser::Communities() const
1774{

Callers 1

UpdateServerRankMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected