Add m_next2u, analogous to m_next2m and next2u

This commit is contained in:
Pasi Kallinen
2024-01-19 21:53:25 +02:00
parent b6bc3ef698
commit 57747535af
15 changed files with 36 additions and 34 deletions

View File

@@ -827,7 +827,7 @@ dochug(register struct monst* mtmp)
break;
case MMOVE_MOVED: /* monster moved */
/* if confused grabber has wandered off, let go */
if (mtmp == u.ustuck && !next2u(mtmp->mx, mtmp->my))
if (mtmp == u.ustuck && !m_next2u(mtmp))
unstuck(mtmp);
if (grounded(mdat))
disturb_buried_zombies(mtmp->mx, mtmp->my);