* Check if a monster is inside the region. * It's probably quicker to check with the region internal list * than to check for coordinates. */
| 207 | * than to check for coordinates. |
| 208 | */ |
| 209 | boolean |
| 210 | mon_in_region(NhRegion *reg, struct monst *mon) |
| 211 | { |
| 212 | int i; |
| 213 | |
| 214 | for (i = 0; i < reg->n_monst; i++) |
| 215 | if (reg->monsters[i] == mon->m_id) |
| 216 | return TRUE; |
| 217 | return FALSE; |
| 218 | } |
| 219 | |
| 220 | #if 0 |
| 221 | /* not yet used */ |
no outgoing calls
no test coverage detected