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:
@@ -859,6 +859,8 @@ dochug(struct monst *mtmp)
|
|||||||
|
|
||||||
if (!status)
|
if (!status)
|
||||||
status = m_move(mtmp, 0);
|
status = m_move(mtmp, 0);
|
||||||
|
if (mon_offmap(mtmp))
|
||||||
|
return 1;
|
||||||
if (status != MMOVE_DIED)
|
if (status != MMOVE_DIED)
|
||||||
distfleeck(mtmp, &inrange, &nearby, &scared); /* recalc */
|
distfleeck(mtmp, &inrange, &nearby, &scared); /* recalc */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user