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

Function loop

source/src/world.cpp:681–691  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

679bool worldbordercheck(int x1, int x2, int y1, int y2, int z1, int z2) // check for solid world border
680{
681 loop(x, ssize) loop(y, ssize)
682 {
683 if(x >= x1 && x < ssize - x2 && y >= y1 && y < ssize - y2)
684 {
685 if(S(x,y)->type != SOLID && (S(x,y)->ceil > 126 - z1 || S(x,y)->floor < -127 + z2)) return false;
686 }
687 else
688 {
689 if(S(x,y)->type != SOLID) return false;
690 }
691 }
692 return true;
693}
694

Callers 4

worldbordercheckFunction · 0.70
empty_worldFunction · 0.70
intersectgeometryFunction · 0.70
rendershadowtilesFunction · 0.70

Calls 1

sqrdefaultFunction · 0.85

Tested by

no test coverage detected