| 675 | } |
| 676 | |
| 677 | boolean |
| 678 | inside_room(struct mkroom *croom, coordxy x, coordxy y) |
| 679 | { |
| 680 | if (croom->irregular) { |
| 681 | int i = (int) ((croom - svr.rooms) + ROOMOFFSET); |
| 682 | return (!levl[x][y].edge && (int) levl[x][y].roomno == i); |
| 683 | } |
| 684 | |
| 685 | return (boolean) (x >= croom->lx - 1 && x <= croom->hx + 1 |
| 686 | && y >= croom->ly - 1 && y <= croom->hy + 1); |
| 687 | } |
| 688 | |
| 689 | /* return a coord c inside mkroom croom, but not in a subroom. |
| 690 | returns TRUE if any such space found. |
no outgoing calls
no test coverage detected