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

Function putflaginfo

source/src/server.cpp:1288–1303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1286}
1287
1288void putflaginfo(packetbuf &p, int flag)
1289{
1290 sflaginfo &f = sg->sflaginfos[flag];
1291 putint(p, SV_FLAGINFO);
1292 putint(p, flag);
1293 putint(p, f.state);
1294 switch(f.state)
1295 {
1296 case CTFF_STOLEN:
1297 putint(p, f.actor_cn);
1298 break;
1299 case CTFF_DROPPED:
1300 loopi(3) putuint(p, (int)(f.pos[i]*DMF));
1301 break;
1302 }
1303}
1304
1305inline void send_item_list(packetbuf &p)
1306{

Callers 2

send_item_listFunction · 0.85
sendflaginfoFunction · 0.85

Calls 3

putintFunction · 0.85
putuintFunction · 0.85
loopiFunction · 0.70

Tested by

no test coverage detected