| 389 | } |
| 390 | |
| 391 | struct monst * |
| 392 | findpriest(char roomno) |
| 393 | { |
| 394 | struct monst *mtmp; |
| 395 | |
| 396 | for (mtmp = fmon; mtmp; mtmp = mtmp->nmon) { |
| 397 | if (DEADMONSTER(mtmp)) |
| 398 | continue; |
| 399 | if (mtmp->ispriest && (EPRI(mtmp)->shroom == roomno) |
| 400 | && histemple_at(mtmp, mtmp->mx, mtmp->my)) |
| 401 | return mtmp; |
| 402 | } |
| 403 | return (struct monst *) 0; |
| 404 | } |
| 405 | |
| 406 | DISABLE_WARNING_FORMAT_NONLITERAL |
| 407 |
no test coverage detected