summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dungeon.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/dungeon.cc')
-rw-r--r--crawl-ref/source/dungeon.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/dungeon.cc b/crawl-ref/source/dungeon.cc
index 442ff363b1..f1d1c8182c 100644
--- a/crawl-ref/source/dungeon.cc
+++ b/crawl-ref/source/dungeon.cc
@@ -2934,6 +2934,12 @@ bool dgn_has_adjacent_feat(coord_def c, dungeon_feature_type feat)
return false;
}
+coord_def dgn_random_point_in_margin(int margin)
+{
+ return coord_def(random_range(margin, GXM - margin - 1),
+ random_range(margin, GYM - margin - 1));
+}
+
static inline bool _point_matches_feat(coord_def c,
dungeon_feature_type searchfeat,
unsigned mapmask,