Is the square close enough for the monster to move or attack into? */
| 2473 | |
| 2474 | /* Is the square close enough for the monster to move or attack into? */ |
| 2475 | boolean |
| 2476 | monnear(struct monst *mon, coordxy x, coordxy y) |
| 2477 | { |
| 2478 | int distance = dist2(mon->mx, mon->my, x, y); |
| 2479 | |
| 2480 | if (distance == 2 && NODIAG(mon->data - mons)) |
| 2481 | return 0; |
| 2482 | return (boolean) (distance < 3); |
| 2483 | } |
| 2484 | |
| 2485 | /* really free dead monsters */ |
| 2486 | void |
no test coverage detected