summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/externs.h
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-03-01 03:01:23 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-03-01 03:01:23 +0000
commitb872c3121bce1e214ee313a594cb4a1a12f334ed (patch)
tree05bb9dcc9a3096d4cb2e9bfbe3ea8a9fd826ff6d /crawl-ref/source/externs.h
parent46f119b34b1a6c5ec90e6b2d2de00eae1ef9678e (diff)
downloadcrawl-ref-b872c3121bce1e214ee313a594cb4a1a12f334ed.tar.gz
crawl-ref-b872c3121bce1e214ee313a594cb4a1a12f334ed.zip
Fix more monster placement problems: After falling down shafts, if the
monsters weren't placed near the player, they'd all be placed at the same location, causing "floating monster" errors. Place them all *near* that same location instead, and check for terrain the monster can inhabit instead of just floor. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9298 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/externs.h')
-rw-r--r--crawl-ref/source/externs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/externs.h b/crawl-ref/source/externs.h
index 4b70506ba3..5f16a2ce79 100644
--- a/crawl-ref/source/externs.h
+++ b/crawl-ref/source/externs.h
@@ -1353,7 +1353,8 @@ public:
bool needs_transit() const;
void set_transit(const level_id &destination);
bool find_place_to_live(bool near_player = false);
- bool find_place_near_player();
+ bool find_home_near_place(const coord_def &c);
+ bool find_home_near_player();
bool find_home_around(const coord_def &c, int radius);
bool find_home_anywhere();