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

Method IsClientPlayer

src/game/server/gamecontext.cpp:4734–4737  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4732}
4733
4734bool CGameContext::IsClientPlayer(int ClientId) const
4735{
4736 return m_apPlayers[ClientId] && m_apPlayers[ClientId]->GetTeam() != TEAM_SPECTATORS;
4737}
4738
4739bool CGameContext::IsClientHighBandwidth(int ClientId) const
4740{

Callers 3

CacheServerInfoMethod · 0.80
CacheServerInfoSixupMethod · 0.80

Calls 1

GetTeamMethod · 0.80

Tested by

no test coverage detected