MCPcopy Index your code
hub / github.com/assaultcube/AC / clienthasflag

Function clienthasflag

source/src/server.cpp:1521–1528  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1519}
1520
1521int clienthasflag(int cn)
1522{
1523 if(m_flags_ && valid_client(cn))
1524 {
1525 loopi(2) { if(sg->sflaginfos[i].state==CTFF_STOLEN && sg->sflaginfos[i].actor_cn==cn) return i; }
1526 }
1527 return -1;
1528}
1529
1530void ctfreset()
1531{

Callers 6

loopvFunction · 0.85
sdropflagFunction · 0.85
resetflagFunction · 0.85
serverdamageFunction · 0.85
updateclientteamFunction · 0.85
refillteamsFunction · 0.85

Calls 2

valid_clientFunction · 0.85
loopiFunction · 0.70

Tested by

no test coverage detected