diff options
author | Adam Borowski <kilobyte@angband.pl> | 2013-03-16 23:24:38 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2013-03-17 21:01:41 +0100 |
commit | 4831c0482cccb23b6da8fb1b2d547c8178bcad81 (patch) | |
tree | 15f81ca87013bc0ee4387b9bff2d780d62973380 /crawl-ref/source/maps.cc | |
parent | 4777205867e5a197b2055b3589f557d58371260e (diff) | |
download | crawl-ref-4831c0482cccb23b6da8fb1b2d547c8178bcad81.tar.gz crawl-ref-4831c0482cccb23b6da8fb1b2d547c8178bcad81.zip |
Allow vaults to be placed closer to the edge, in branches other than Shoals.
Greensnark added recently a hack to let the connector work, but that change
was not meant to affect other branches (as mentioned on crawl-ref-discuss).
Diffstat (limited to 'crawl-ref/source/maps.cc')
-rw-r--r-- | crawl-ref/source/maps.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/maps.cc b/crawl-ref/source/maps.cc index a8ac57dfd3..cd52937681 100644 --- a/crawl-ref/source/maps.cc +++ b/crawl-ref/source/maps.cc @@ -522,7 +522,8 @@ static coord_def _find_minivault_place( // [ds] The margin around the edges of the map where the minivault // won't be placed. Purely arbitrary as far as I can see. - const int margin = MAPGEN_BORDER * 2 + 1; + // The spotty connector in the Shoals needs one more space to work. + const int margin = MAPGEN_BORDER * 2 + player_in_branch(BRANCH_SHOALS); // Find a target area which can be safely overwritten. for (int tries = 0; tries < 600; ++tries) |