MCPcopy Create free account
hub / github.com/assaultcube/AC / numteamclients

Function numteamclients

source/src/server.cpp:569–575  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

567}
568
569int *numteamclients(int exclude = -1)
570{
571 static int num[TEAM_NUM];
572 loopi(TEAM_NUM) num[i] = 0;
573 loopv(clients) if(i != exclude && clients[i]->type!=ST_EMPTY && clients[i]->isauthed && clients[i]->isonrightmap && team_isvalid(clients[i]->team)) num[clients[i]->team]++;
574 return num;
575}
576
577int sendservermode(bool send = true)
578{

Callers 3

arenacheckFunction · 0.85
canspawnFunction · 0.85
updateclientteamFunction · 0.85

Calls 2

loopiFunction · 0.70
loopvFunction · 0.70

Tested by

no test coverage detected