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

Method ClientCountry

src/engine/server/server.cpp:766–774  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

764}
765
766int CServer::ClientCountry(int ClientId) const
767{
768 if(ClientId < 0 || ClientId >= MAX_CLIENTS || m_aClients[ClientId].m_State == CServer::CClient::STATE_EMPTY)
769 return -1;
770 if(m_aClients[ClientId].m_State == CServer::CClient::STATE_INGAME)
771 return m_aClients[ClientId].m_Country;
772 else
773 return -1;
774}
775
776bool CServer::ClientSlotEmpty(int ClientId) const
777{

Callers 3

OnClientEnterMethod · 0.80
SnapMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected