otmp is about to be destroyed or stolen */
| 708 | |
| 709 | /* otmp is about to be destroyed or stolen */ |
| 710 | void |
| 711 | o_unleash(struct obj *otmp) |
| 712 | { |
| 713 | struct monst *mtmp; |
| 714 | |
| 715 | for (mtmp = fmon; mtmp; mtmp = mtmp->nmon) |
| 716 | if (mtmp->m_id == (unsigned) otmp->leashmon) { |
| 717 | mtmp->mleashed = 0; |
| 718 | break; |
| 719 | } |
| 720 | otmp->leashmon = 0; |
| 721 | update_inventory(); |
| 722 | } |
| 723 | |
| 724 | /* mtmp is about to die, or become untame */ |
| 725 | void |
no test coverage detected