this easily could be a macro, but it might overtax dumb compilers */
| 17 | |
| 18 | /* this easily could be a macro, but it might overtax dumb compilers */ |
| 19 | staticfn int |
| 20 | mon_in_room(struct monst *mon, int rmtyp) |
| 21 | { |
| 22 | int rno = levl[mon->mx][mon->my].roomno; |
| 23 | if (rno >= ROOMOFFSET) |
| 24 | return svr.rooms[rno - ROOMOFFSET].rtype == rmtyp; |
| 25 | return FALSE; |
| 26 | } |
| 27 | |
| 28 | |
| 29 | staticfn boolean |
no outgoing calls
no test coverage detected