summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells4.cc
diff options
context:
space:
mode:
authorennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-01-17 13:40:34 +0000
committerennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-01-17 13:40:34 +0000
commit3ab3303612aa604874cc44addfcbf49257f8676b (patch)
tree901c606bb43de4f8e3310a78f43a65c068d3274c /crawl-ref/source/spells4.cc
parent69d952a9818adf4f0d2b598b88e76f202994edbf (diff)
downloadcrawl-ref-3ab3303612aa604874cc44addfcbf49257f8676b.tar.gz
crawl-ref-3ab3303612aa604874cc44addfcbf49257f8676b.zip
Secret doors that have a transparent appearance are discovered opened, to prevent a LOS change when noticed.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3293 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells4.cc')
-rw-r--r--crawl-ref/source/spells4.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/spells4.cc b/crawl-ref/source/spells4.cc
index e31a81a837..02ffc88846 100644
--- a/crawl-ref/source/spells4.cc
+++ b/crawl-ref/source/spells4.cc
@@ -37,6 +37,7 @@
#include "invent.h"
#include "makeitem.h"
#include "message.h"
+#include "misc.h"
#include "monplace.h"
#include "monstuff.h"
#include "mon-util.h"
@@ -445,7 +446,7 @@ void cast_detect_secret_doors(int pow)
if (grd[x][y] == DNGN_SECRET_DOOR && random2(pow) > random2(15))
{
- grd[x][y] = DNGN_CLOSED_DOOR;
+ reveal_secret_door(x, y);
found++;
}
}