From d6b40e981b9ab1181deb2ea7baaf6f62b9fd2b35 Mon Sep 17 00:00:00 2001 From: Matthew Cline Date: Sun, 25 Oct 2009 02:48:22 -0700 Subject: 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. --- crawl-ref/source/terrain.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'crawl-ref/source/terrain.cc') 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 -- cgit v1.2.3-54-g00ecf