summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/xom.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-07-11 23:18:30 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-07-11 23:18:30 +0000
commit144d923598efdf70d12d19437b2a59dee0015c01 (patch)
tree896505eebfbe235c63a051e54b1ddca2a6263e52 /crawl-ref/source/xom.cc
parentcc99e42dae0091ba2ad43dde3db0660e083bb793 (diff)
downloadcrawl-ref-144d923598efdf70d12d19437b2a59dee0015c01.tar.gz
crawl-ref-144d923598efdf70d12d19437b2a59dee0015c01.zip
Detected secret doors are now treated as a distinct new door type, so
that stupid monsters will continue to ignore them as long as they've never been opened. Shifts wall and door types of existing save files. Also apply patch by one the "nobodies" to make bloody tiles show up again. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10167 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/xom.cc')
-rw-r--r--crawl-ref/source/xom.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/xom.cc b/crawl-ref/source/xom.cc
index 968e5976c9..78310ba4a3 100644
--- a/crawl-ref/source/xom.cc
+++ b/crawl-ref/source/xom.cc
@@ -368,13 +368,13 @@ static int _exploration_estimate(bool seen_only = false)
}
bool open = true;
- if (grid_is_solid(grd(pos)) && grd(pos) != DNGN_CLOSED_DOOR)
+ if (grid_is_solid(grd(pos)) && !grid_is_closed_door(grd(pos)))
{
open = false;
for (adjacent_iterator ai(pos); ai; ++ai)
{
if (map_bounds(*ai) && (!grid_is_opaque(grd(*ai))
- || grd(*ai) == DNGN_CLOSED_DOOR))
+ || grid_is_closed_door(grd(*ai))))
{
open = true;
break;