leave the level then. This will have to do until there's some way to fake the trap trigger message.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6001 c06c8d41-db1a-0410-9941-cceddc491573
KVRDLMIRHKEMFKZ22JK5SZEDLDEXPEVOYWW535DN7EJVHL32IOMQC // If it is, and it's on the exit, make it leave the level.else if (mon->x == mon->target_x && mon->y == mon->target_y)
// If it's on an exit, make it leave the level.else if (mon->travel_target == MTRAV_EXIT&& mon->x == mon->target_x && mon->y == mon->target_y){_make_mons_leave_level(mon);return;}// If it's next to a trap, make it leave the level.else if (mon->travel_target == MTRAV_TRAP&& distance(mon->x, mon->y, mon->target_x, mon->target_y) == 1)