summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-util.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-28 20:12:19 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-28 20:12:19 +0000
commitf05e54a08b3a192cb16ebe3c593c6f97d70226b4 (patch)
treeafb6518c04e073003c142eaabded9cfe635ddc3d /crawl-ref/source/mon-util.cc
parentfd053dba7a45ba11a5238fb207ee939bfef14391 (diff)
downloadcrawl-ref-f05e54a08b3a192cb16ebe3c593c6f97d70226b4.tar.gz
crawl-ref-f05e54a08b3a192cb16ebe3c593c6f97d70226b4.zip
After some pointers from jpeg, rework the routine for monsters' leaving
the level to use the pathfinding routines for patrolling. The monsters still sometimes disappear when near the exit instead of on it, which needs to be fixed, but it's vastly closer to working properly. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6186 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mon-util.cc')
-rw-r--r--crawl-ref/source/mon-util.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc
index 26141dde8a..8973f43299 100644
--- a/crawl-ref/source/mon-util.cc
+++ b/crawl-ref/source/mon-util.cc
@@ -2206,11 +2206,6 @@ bool mons_is_cornered(const monsters *m)
return (m->behaviour == BEH_CORNERED);
}
-bool mons_is_leaving(const monsters *m)
-{
- return (m->behaviour == BEH_LEAVE);
-}
-
bool mons_is_lurking(const monsters *m)
{
return (m->behaviour == BEH_LURK);
@@ -2264,7 +2259,7 @@ void mons_pacify(monsters *mon)
mon->flags |= MF_GOT_HALF_XP;
}
- // Make the monster leave the level.
+ // Make the monster begin leaving the level.
behaviour_event(mon, ME_EVAL);
}