summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/maps.cc
diff options
context:
space:
mode:
authorSteve Melenchuk <smelenchuk@gmail.com>2013-05-25 19:19:44 -0600
committerSteve Melenchuk <smelenchuk@gmail.com>2013-05-26 20:56:16 -0600
commit5ad725fafd9e892f77c7fe9a83c7659516bebfe7 (patch)
tree7232399c1b9acd9b8436bb0767122a9c21d27af6 /crawl-ref/source/maps.cc
parent65f519f29f21b78d568cbf1bfbd574a461031efb (diff)
downloadcrawl-ref-5ad725fafd9e892f77c7fe9a83c7659516bebfe7.tar.gz
crawl-ref-5ad725fafd9e892f77c7fe9a83c7659516bebfe7.zip
Adjust level layouts for Forest.
This makes layout_twisted_forest the sole layout for Forest (for now), and adjusts it to provide a border of trees in Forest. Vaults that have been tagged for Forest previously are given standard weights, and functionality has been added to the vault placer to allow vaults placing in Forest to overwrite trees so that the vaults can reliably place there.
Diffstat (limited to 'crawl-ref/source/maps.cc')
-rw-r--r--crawl-ref/source/maps.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/maps.cc b/crawl-ref/source/maps.cc
index 54f9f36a03..b0ffdfe892 100644
--- a/crawl-ref/source/maps.cc
+++ b/crawl-ref/source/maps.cc
@@ -375,6 +375,9 @@ static bool _may_overwrite_feature(const coord_def p,
if (grid == DNGN_DEEP_WATER)
return water_ok;
+ if (grid == DNGN_TREE && player_in_branch(BRANCH_FOREST))
+ return true;
+
// Handle all other non-LOS blocking grids here.
if (!feat_is_opaque(grid)
&& grid != DNGN_FLOOR