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

Function countclients

source/src/server.cpp:544–549  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

542}
543
544int countclients(int type, bool exclude = false)
545{
546 int num = 0;
547 loopv(clients) if((clients[i]->type!=type)==exclude) num++;
548 return num;
549}
550
551int numclients() { return countclients(ST_EMPTY, true); }
552int numlocalclients() { return countclients(ST_LOCAL); }

Callers 3

numclientsFunction · 0.85
numlocalclientsFunction · 0.85
numnonlocalclientsFunction · 0.85

Calls 1

loopvFunction · 0.70

Tested by

no test coverage detected