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

Function loopk

source/src/server.cpp:3701–3710  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3699 loopk(3) { float v = getint(p)/DMF; shot.shot.to[k] = ((k<2 && v<0.0f)?0.0f:v); }
3700 int hits = getint(p);
3701 loopk(hits)
3702 {
3703 if(p.overread()) break;
3704 gameevent &hit = cl->addevent();
3705 hit.type = GE_HIT;
3706 hit.hit.target = getint(p);
3707 hit.hit.lifesequence = getint(p);
3708 hit.hit.info = getint(p);
3709 loopk(3) hit.hit.dir[k] = getint(p)/DNF;
3710 }
3711 break;
3712 }
3713

Callers 2

shuffleteamsFunction · 0.70
processFunction · 0.70

Calls 2

getintFunction · 0.85
overreadMethod · 0.80

Tested by

no test coverage detected