Fix off-map monster doing things

m_move could make monster go off-map (by eg. using a trap),
but the return values don't reflect that
This commit is contained in:
Pasi Kallinen
2024-04-22 16:38:59 +03:00
parent b76a96bf40
commit 3ec8eb59de
+2
View File
@@ -859,6 +859,8 @@ dochug(struct monst *mtmp)
if (!status)
status = m_move(mtmp, 0);
if (mon_offmap(mtmp))
return 1;
if (status != MMOVE_DIED)
distfleeck(mtmp, &inrange, &nearby, &scared); /* recalc */