* "entity next to" * * Attempt to find a good place for the given monster type in the closest * position to (xx,yy). Do so in successive square rings around (xx,yy). * If there is more than one valid position in the ring, choose one randomly. * Return TRUE and the position chosen when successful, FALSE otherwise. */
| 193 | * Return TRUE and the position chosen when successful, FALSE otherwise. |
| 194 | */ |
| 195 | boolean |
| 196 | enexto( |
| 197 | coord *cc, |
| 198 | coordxy xx, coordxy yy, |
| 199 | struct permonst *mdat) |
| 200 | { |
| 201 | return (enexto_core(cc, xx, yy, mdat, GP_CHECKSCARY) |
| 202 | || enexto_core(cc, xx, yy, mdat, NO_MM_FLAGS)); |
| 203 | } |
| 204 | |
| 205 | boolean |
| 206 | enexto_gpflags( |
no test coverage detected