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

Function flagstolen

source/src/entities.cpp:530–538  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

528// flag ent actions from the net
529
530void flagstolen(int flag, int act)
531{
532 playerent *actor = getclient(act);
533 flaginfo &f = flaginfos[flag];
534 f.actor = actor; // could be NULL if we just connected
535 f.actor_cn = act;
536 f.flagent->spawned = false;
537 f.ack = true;
538}
539
540void flagdropped(int flag, float x, float y, float z)
541{

Callers 1

parsemessagesFunction · 0.85

Calls 1

getclientFunction · 0.85

Tested by

no test coverage detected