| 395 | //========================================================================== |
| 396 | |
| 397 | int inside(double x, double y, const sectortype* sect) |
| 398 | { |
| 399 | if (sect) |
| 400 | { |
| 401 | int64_t acc = 1; |
| 402 | for (auto& wal : sect->walls) |
| 403 | { |
| 404 | acc ^= checkforinside(x, y, wal.pos, wal.point2Wall()->pos); |
| 405 | } |
| 406 | return acc < 0; |
| 407 | } |
| 408 | return -1; |
| 409 | } |
| 410 | |
| 411 | //========================================================================== |
| 412 | // |
no test coverage detected