Prevent a possible impossible when guard relocated a monster

This commit is contained in:
Pasi Kallinen
2019-09-06 22:09:03 +03:00
parent 8cf70f7771
commit 6426e61860
2 changed files with 3 additions and 1 deletions

View File

@@ -79,7 +79,8 @@ boolean forceshow;
} else if (!in_fcorridor(grd, u.ux, u.uy)) {
if (mtmp->mtame)
yelp(mtmp);
(void) rloc(mtmp, FALSE);
if (!rloc(mtmp, TRUE))
m_into_limbo(mtmp);
}
}
lev = &levl[fcx][fcy];