git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6193 c06c8d41-db1a-0410-9941-cceddc491573
QMN4QZWL4LOQMJ7A56O5WXH6J5TBLNA63XWIL34DNU7J3FVQI2UQC
}
// If a pacified monster is leaving the level via
// something other than a trap, and has reached its
// goal, handle it here.
if (isPacified && e_index != -1
&& mon->x == e[e_index].target.x
&& mon->y == e[e_index].target.y)
{
make_mons_leave_level(mon);
return;
}
// If a pacified monster is far enough away from the
// player, make it leave the level.
if (grid_distance(mon->x, mon->y, you.x_pos, you.y_pos)
>= LOS_RADIUS * LOS_RADIUS * 4)
{
make_mons_leave_level(mon);
return;