summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/abyss.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/abyss.cc')
-rw-r--r--crawl-ref/source/abyss.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/crawl-ref/source/abyss.cc b/crawl-ref/source/abyss.cc
index 3ab081c559..34a44c16ad 100644
--- a/crawl-ref/source/abyss.cc
+++ b/crawl-ref/source/abyss.cc
@@ -811,8 +811,11 @@ static void _corrupt_square(const crawl_environment &oenv, const coord_def &c)
else
feat = oenv.grid(c);
- if (is_trap_square(feat) || feat == DNGN_SECRET_DOOR || feat == DNGN_UNSEEN)
+ if (grid_is_trap(feat, true)
+ || feat == DNGN_SECRET_DOOR || feat == DNGN_UNSEEN)
+ {
return;
+ }
if (is_traversable(grd(c)) && !is_traversable(feat)
&& _is_crowded_square(c))