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

Function distributespawns

source/src/server.cpp:1613–1628  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1611}
1612
1613void distributespawns()
1614{
1615 loopv(clients) if(clients[i]->type!=ST_EMPTY)
1616 {
1617 clients[i]->spawnindex = -1;
1618 }
1619 if(m_teammode)
1620 {
1621 distributeteam(0);
1622 distributeteam(1);
1623 }
1624 else
1625 {
1626 distributeteam(100);
1627 }
1628}
1629
1630void checkitemspawns(int);
1631

Callers 2

arenacheckFunction · 0.85
startgameFunction · 0.85

Calls 2

distributeteamFunction · 0.85
loopvFunction · 0.70

Tested by

no test coverage detected