* remove_worm() * * This function is equivalent to the remove_monster #define in * rm.h, only it will take the worm *and* tail out of the levels array. * It does not get rid of (dealloc) the worm tail structures, and it does * not remove the mon from the fmon chain. */
| 711 | * not remove the mon from the fmon chain. |
| 712 | */ |
| 713 | void |
| 714 | remove_worm(struct monst *worm) |
| 715 | { |
| 716 | struct wseg *curr = wtails[worm->wormno]; |
| 717 | |
| 718 | while (curr) { |
| 719 | if (curr->wx) { |
| 720 | remove_monster(curr->wx, curr->wy); |
| 721 | newsym(curr->wx, curr->wy); |
| 722 | curr->wx = 0; |
| 723 | } |
| 724 | curr = curr->nseg; |
| 725 | } |
| 726 | } |
| 727 | |
| 728 | /* |
| 729 | * place_worm_tail_randomly() |
no test coverage detected