| 1832 | } |
| 1833 | |
| 1834 | unsigned CServerBrowser::CurrentCommunitiesHash() const |
| 1835 | { |
| 1836 | std::vector<const CCommunity *> vpCommunities = CurrentCommunities(); |
| 1837 | unsigned Hash = 5381; |
| 1838 | for(const CCommunity *pCommunity : CurrentCommunities()) |
| 1839 | { |
| 1840 | Hash = (Hash << 5) + Hash + str_quickhash(pCommunity->Id()); |
| 1841 | } |
| 1842 | return Hash; |
| 1843 | } |
| 1844 | |
| 1845 | void CCommunityCache::Update(bool Force) |
| 1846 | { |
no test coverage detected