summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dungeon.h
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-15 10:02:19 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-15 10:02:19 +0000
commitcf4b68bb3c2e5d1955d41fff7284a7d56a484b3f (patch)
treefb403a4d82b266bec7478b92b75b513c55acdb59 /crawl-ref/source/dungeon.h
parentbc30076f91a48a0e05a88317d2048f7bcafc06c7 (diff)
downloadcrawl-ref-cf4b68bb3c2e5d1955d41fff7284a7d56a484b3f.tar.gz
crawl-ref-cf4b68bb3c2e5d1955d41fff7284a7d56a484b3f.zip
Various cleanups, mostly having to do with coord_def().
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9086 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/dungeon.h')
-rw-r--r--crawl-ref/source/dungeon.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/dungeon.h b/crawl-ref/source/dungeon.h
index e73eff36a9..00d24662b6 100644
--- a/crawl-ref/source/dungeon.h
+++ b/crawl-ref/source/dungeon.h
@@ -417,6 +417,10 @@ inline int count_feature_in_box( const coord_def& p1, const coord_def& p2,
int count_antifeature_in_box(int x0, int y0, int x1, int y1,
dungeon_feature_type feat);
int count_neighbours(int x, int y, dungeon_feature_type feat);
+inline int count_neighbours(const coord_def& p, dungeon_feature_type feat)
+{
+ return count_neighbours(p.x, p.y, feat);
+}
void remember_vault_placement(std::string key, vault_placement &place);
#endif