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

Function numplayers

source/src/server.cpp:1793–1810  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1791}
1792
1793int numplayers()
1794{
1795 int count = 1;
1796#ifdef STANDALONE
1797 count = numclients();
1798#else
1799 if(m_botmode)
1800 {
1801 extern vector<botent *> bots;
1802 loopv(bots) if(bots[i]) count++;
1803 }
1804 if(m_demo)
1805 {
1806 count = numclients();
1807 }
1808#endif
1809 return count;
1810}
1811
1812int spawntime(int type)
1813{

Callers 4

spawntimeFunction · 0.85
calcscoresmatchFunction · 0.85
calcscoresFunction · 0.85
shuffleteamsFunction · 0.85

Calls 2

numclientsFunction · 0.85
loopvFunction · 0.70

Tested by

no test coverage detected