diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-22 19:02:39 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-22 19:02:39 +0000 |
commit | faa501a2e61b5fa694b4ca62e0072d571ce71b41 (patch) | |
tree | 461c5ee3e5340df0430c997c1ddb78d643879791 /crawl-ref/source/monstuff.h | |
parent | 1b88ae75470d9067b240b5c6f7114228118e4ca7 (diff) | |
download | crawl-ref-faa501a2e61b5fa694b4ca62e0072d571ce71b41.tar.gz crawl-ref-faa501a2e61b5fa694b4ca62e0072d571ce71b41.zip |
Improve pathfinding for monsters leaving the level again.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6047 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/monstuff.h')
-rw-r--r-- | crawl-ref/source/monstuff.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/crawl-ref/source/monstuff.h b/crawl-ref/source/monstuff.h index 2677d8a8da..6187909210 100644 --- a/crawl-ref/source/monstuff.h +++ b/crawl-ref/source/monstuff.h @@ -38,12 +38,14 @@ 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) + montravel_target_type m = MTRAV_NONE, + bool u = true) - : target(c), target_type(m) + : target(c), target_type(m), unreachable(u) { } }; |