diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-11-25 23:36:07 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-11-25 23:36:07 +0000 |
commit | 83b1c7b2cc01d46d8f904b102681e85c044710a0 (patch) | |
tree | 9d76a04ce3d820458e18b87c7283f4f68b4f2fa4 /crawl-ref/source/mapmark.cc | |
parent | 527fdaf6347eeec4683c418593c1977ab77c5007 (diff) | |
download | crawl-ref-83b1c7b2cc01d46d8f904b102681e85c044710a0.tar.gz crawl-ref-83b1c7b2cc01d46d8f904b102681e85c044710a0.zip |
Place external loot chamber for ziggurat levels with jellies.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7625 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mapmark.cc')
-rw-r--r-- | crawl-ref/source/mapmark.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/crawl-ref/source/mapmark.cc b/crawl-ref/source/mapmark.cc index 62549b737b..1d92b09c14 100644 --- a/crawl-ref/source/mapmark.cc +++ b/crawl-ref/source/mapmark.cc @@ -804,3 +804,18 @@ bool marker_vetoes_operation(const char *op) { return env.markers.property_at(you.pos(), MAT_ANY, op) == "veto"; } + +bool feature_marker_at(const coord_def &pos, dungeon_feature_type feat) +{ + std::vector<map_marker*> markers = env.markers.get_markers_at(pos); + for (int i = 0, size = markers.size(); i < size; ++i) + { + map_marker *mark = markers[i]; + if (mark->get_type() == MAT_FEATURE && + dynamic_cast<map_feature_marker*>(mark)->feat == feat) + { + return (true); + } + } + return (false); +} |