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

@@ -94,7 +94,7 @@ amulet(void)
continue;
if (mtmp->iswiz && mtmp->msleeping && !rn2(40)) {
mtmp->msleeping = 0;
if (!next2u(mtmp->mx, mtmp->my))
if (!m_next2u(mtmp))
You(
"get the creepy feeling that somebody noticed your taking the Amulet.");
return;