* When saving bones, find priests that aren't on their shrine level, * and remove them. This avoids big problems when restoring bones. * [Perhaps we should convert them into roamers instead?] */
| 916 | * [Perhaps we should convert them into roamers instead?] |
| 917 | */ |
| 918 | void |
| 919 | clearpriests(void) |
| 920 | { |
| 921 | struct monst *mtmp; |
| 922 | |
| 923 | for (mtmp = fmon; mtmp; mtmp = mtmp->nmon) { |
| 924 | if (DEADMONSTER(mtmp)) |
| 925 | continue; |
| 926 | if (mtmp->ispriest && !on_level(&(EPRI(mtmp)->shrlevel), &u.uz)) |
| 927 | mongone(mtmp); |
| 928 | } |
| 929 | } |
| 930 | |
| 931 | /* munge priest-specific structure when restoring -dlc */ |
| 932 | void |
no test coverage detected