diff options
Diffstat (limited to 'crawl-ref/source/dungeon.h')
-rw-r--r-- | crawl-ref/source/dungeon.h | 4 |
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 |