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

Function sendflaginfo

source/src/server.cpp:1343–1349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1341}
1342
1343void sendflaginfo(int flag = -1, int cn = -1)
1344{
1345 packetbuf p(MAXTRANS, ENET_PACKET_FLAG_RELIABLE);
1346 if(flag >= 0) putflaginfo(p, flag);
1347 else loopi(2) putflaginfo(p, i);
1348 sendpacket(cn, 1, p.finalize());
1349}
1350
1351void flagmessage(int flag, int message, int actor, int cn = -1)
1352{

Callers 4

flagactionFunction · 0.85
htf_forceflagFunction · 0.85
shuffleteamsFunction · 0.85
startgameFunction · 0.85

Calls 4

putflaginfoFunction · 0.85
sendpacketFunction · 0.85
finalizeMethod · 0.80
loopiFunction · 0.70

Tested by

no test coverage detected