MCPcopy Create free account
hub / github.com/ddnet/ddnet / operator()

Method operator()

src/engine/client/serverbrowser.cpp:217–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215 public:
216 CServerBrowser *m_pThis;
217 bool operator()(int i, int j) const
218 {
219 NETADDR Addr1 = m_pThis->m_vpServerlist[i]->m_Info.m_aAddresses[0];
220 NETADDR Addr2 = m_pThis->m_vpServerlist[j]->m_Info.m_aAddresses[0];
221 Addr1.port = 0;
222 Addr2.port = 0;
223 return net_addr_comp(&Addr1, &Addr2) < 0;
224 }
225 };
226 vSortedServers.reserve(pThis->m_vpServerlist.size());
227 for(int i = 0; i < (int)pThis->m_vpServerlist.size(); i++)

Callers

nothing calls this directly

Calls 1

net_addr_compFunction · 0.85

Tested by

no test coverage detected