summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dgn-layouts.cc
diff options
context:
space:
mode:
authorSteve Melenchuk <smelenchuk@gmail.com>2012-08-18 10:42:31 -0600
committerSteve Melenchuk <smelenchuk@gmail.com>2012-08-18 10:48:12 -0600
commite5e6dc24673904c62d25c87ce1af4e9fc12fd834 (patch)
tree90d83fe7a2cca79bb38d205e1bd33f67872216fd /crawl-ref/source/dgn-layouts.cc
parent12aa9f805d8deab19e63dda6333dc6eb014cba77 (diff)
downloadcrawl-ref-e5e6dc24673904c62d25c87ce1af4e9fc12fd834.tar.gz
crawl-ref-e5e6dc24673904c62d25c87ce1af4e9fc12fd834.zip
Don't let layout_bigger_room overwrite vaults.
Fixes #6086.
Diffstat (limited to 'crawl-ref/source/dgn-layouts.cc')
-rw-r--r--crawl-ref/source/dgn-layouts.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/crawl-ref/source/dgn-layouts.cc b/crawl-ref/source/dgn-layouts.cc
index 3e866f27a6..fd7016993f 100644
--- a/crawl-ref/source/dgn-layouts.cc
+++ b/crawl-ref/source/dgn-layouts.cc
@@ -168,8 +168,11 @@ void dgn_build_bigger_room_level(void)
env.level_layout_types.insert("open");
for (rectangle_iterator ri(10); ri; ++ri)
- if (grd(*ri) == DNGN_ROCK_WALL)
+ if (grd(*ri) == DNGN_ROCK_WALL
+ && !map_masked(*ri, MMT_VAULT))
+ {
grd(*ri) = DNGN_FLOOR;
+ }
dungeon_feature_type pool_type = DNGN_DEEP_WATER;