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

Function ctfreset

source/src/server.cpp:1530–1539  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1528}
1529
1530void ctfreset()
1531{
1532 int idleflag = m_ktf ? rnd(2) : -1;
1533 loopi(2)
1534 {
1535 sg->sflaginfos[i].actor_cn = -1;
1536 sg->sflaginfos[i].state = i == idleflag ? CTFF_IDLE : CTFF_INBASE;
1537 sg->sflaginfos[i].lastupdate = -1;
1538 }
1539}
1540
1541void sdropflag(int cn)
1542{

Callers 2

shuffleteamsFunction · 0.85
resetserverFunction · 0.85

Calls 1

loopiFunction · 0.70

Tested by

no test coverage detected