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

Function findentity

source/src/world.cpp:625–630  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

623COMMANDF(scalelights, "ii", (int *f, int *i) { scalelights(*f, *i); });
624
625int findentity(int type, int index)
626{
627 for(int i = index; i<ents.length(); i++) if(ents[i].type==type) return i;
628 loopj(index) if(ents[j].type==type) return j;
629 return -1;
630}
631
632int findentity(int type, int index, uchar attr2)
633{

Callers 5

nextplayerstartFunction · 0.85
gotovantagepointFunction · 0.85
findplayerstartFunction · 0.85
loopiFunction · 0.85
spectatemodeFunction · 0.85

Calls 2

loopjFunction · 0.70
lengthMethod · 0.45

Tested by

no test coverage detected