* Search for a special room given its type (zoo, court, etc...) * Special values : * - ANY_SHOP * - ANY_TYPE */
| 762 | * - ANY_TYPE |
| 763 | */ |
| 764 | struct mkroom * |
| 765 | search_special(schar type) |
| 766 | { |
| 767 | struct mkroom *croom; |
| 768 | |
| 769 | for (croom = &svr.rooms[0]; croom->hx >= 0; croom++) |
| 770 | if ((type == ANY_TYPE && croom->rtype != OROOM) |
| 771 | || (type == ANY_SHOP && croom->rtype >= SHOPBASE) |
| 772 | || croom->rtype == type) |
| 773 | return croom; |
| 774 | for (croom = &gs.subrooms[0]; croom->hx >= 0; croom++) |
| 775 | if ((type == ANY_TYPE && croom->rtype != OROOM) |
| 776 | || (type == ANY_SHOP && croom->rtype >= SHOPBASE) |
| 777 | || croom->rtype == type) |
| 778 | return croom; |
| 779 | return (struct mkroom *) 0; |
| 780 | } |
| 781 | |
| 782 | struct permonst * |
| 783 | courtmon(void) |
no outgoing calls
no test coverage detected