summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/abyss.cc
diff options
context:
space:
mode:
authorMikko Vepsalainen <mtvepsal@gmail.com>2014-07-07 22:58:39 +0300
committerNeil Moore <neil@s-z.org>2014-07-10 22:36:26 -0400
commitb5d75e044a05f1018eafbd445bf5f2044583fe12 (patch)
tree7320ac46d76759e41caf9ea39de264baa715f1ee /crawl-ref/source/abyss.cc
parentcd11dfcb321c788e456a3f7af785051328db2daa (diff)
downloadcrawl-ref-b5d75e044a05f1018eafbd445bf5f2044583fe12.tar.gz
crawl-ref-b5d75e044a05f1018eafbd445bf5f2044583fe12.zip
Respect level generation mask when placing Abyss features.
Diffstat (limited to 'crawl-ref/source/abyss.cc')
-rw-r--r--crawl-ref/source/abyss.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/abyss.cc b/crawl-ref/source/abyss.cc
index 8ccf74f218..22bcd4c6d9 100644
--- a/crawl-ref/source/abyss.cc
+++ b/crawl-ref/source/abyss.cc
@@ -437,6 +437,8 @@ static bool _abyss_check_place_feat(coord_def p,
// Link the vault-placed items.
_abyss_postvault_fixup();
}
+ else if (!abyss_genlevel_mask(p))
+ return false;
else
grd(p) = which_feat;