summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monstuff.h
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/monstuff.h
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/monstuff.h')
-rw-r--r--crawl-ref/source/monstuff.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/crawl-ref/source/monstuff.h b/crawl-ref/source/monstuff.h
index ec523aca6d..5aee3f67e0 100644
--- a/crawl-ref/source/monstuff.h
+++ b/crawl-ref/source/monstuff.h
@@ -37,15 +37,13 @@ enum mon_desc_type // things that cross categorical lines {dlb}
struct level_exit
{
coord_def target;
- montravel_target_type target_type;
bool unreachable;
public:
level_exit(coord_def c = coord_def(-1, -1),
- montravel_target_type m = MTRAV_NONE,
bool u = true)
- : target(c), target_type(m), unreachable(u)
+ : target(c), unreachable(u)
{
}
};