summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/terrain.cc
diff options
context:
space:
mode:
authorMatthew Cline <zelgadis@sourceforge.net>2009-10-25 02:48:22 -0700
committerMatthew Cline <zelgadis@sourceforge.net>2009-10-25 02:48:22 -0700
commitd6b40e981b9ab1181deb2ea7baaf6f62b9fd2b35 (patch)
treef9b2561162248ce0ac9e7698c6d6d563a1c514f0 /crawl-ref/source/terrain.cc
parent045ee813f5c30b1a660017c891bcd9d203c44224 (diff)
downloadcrawl-ref-d6b40e981b9ab1181deb2ea7baaf6f62b9fd2b35.tar.gz
crawl-ref-d6b40e981b9ab1181deb2ea7baaf6f62b9fd2b35.zip
FR 2792379: stop auto-explore on marked statues
Markers can be placed on statues or orcish idols to cause auto-explore to stop when those statues/idols are first found.
Diffstat (limited to 'crawl-ref/source/terrain.cc')
-rw-r--r--crawl-ref/source/terrain.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/terrain.cc b/crawl-ref/source/terrain.cc
index ae5ed894db..8f8344380d 100644
--- a/crawl-ref/source/terrain.cc
+++ b/crawl-ref/source/terrain.cc
@@ -328,6 +328,11 @@ bool feat_is_secret_door(dungeon_feature_type feat)
return (feat == DNGN_SECRET_DOOR || feat == DNGN_DETECTED_SECRET_DOOR);
}
+bool feat_is_statue_or_idol(dungeon_feature_type feat)
+{
+ return (feat >= DNGN_ORCISH_IDOL && feat <= DNGN_STATUE_RESERVED);
+}
+
bool feat_is_rock(dungeon_feature_type feat)
{
return (feat == DNGN_ORCISH_IDOL