| 3418 | } |
| 3419 | |
| 3420 | void |
| 3421 | set_ustuck(struct monst *mtmp) |
| 3422 | { |
| 3423 | if (iflags.sanity_check || iflags.debug_fuzzer) { |
| 3424 | if (mtmp && !m_next2u(mtmp)) |
| 3425 | impossible("Sticking to %s at distu %d?", |
| 3426 | mon_nam(mtmp), mdistu(mtmp)); |
| 3427 | } |
| 3428 | |
| 3429 | disp.botl = TRUE; |
| 3430 | u.ustuck = mtmp; |
| 3431 | if (!u.ustuck) { |
| 3432 | u.uswallow = 0; |
| 3433 | u.uswldtim = 0; |
| 3434 | } |
| 3435 | } |
| 3436 | |
| 3437 | void |
| 3438 | unstuck(struct monst *mtmp) |
no test coverage detected