| 679 | bool 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 |
no test coverage detected