summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dgn-layouts.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-12-19 00:19:24 +0100
committerAdam Borowski <kilobyte@angband.pl>2013-12-19 00:19:24 +0100
commitf933c8c3d6a141c76ca5e05eda5f11b6d14722c3 (patch)
tree80d1922fbb3977ddfdc79678544a5a29f879f894 /crawl-ref/source/dgn-layouts.cc
parent56402a27013be84ab7678cbfc1725d380fdaf04e (diff)
downloadcrawl-ref-f933c8c3d6a141c76ca5e05eda5f11b6d14722c3.tar.gz
crawl-ref-f933c8c3d6a141c76ca5e05eda5f11b6d14722c3.zip
Schedule DNGN_ENTER_PORTAL_VAULT for removal; other related fixes.
Diffstat (limited to 'crawl-ref/source/dgn-layouts.cc')
-rw-r--r--crawl-ref/source/dgn-layouts.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/dgn-layouts.cc b/crawl-ref/source/dgn-layouts.cc
index 6f684dec56..6671969c8b 100644
--- a/crawl-ref/source/dgn-layouts.cc
+++ b/crawl-ref/source/dgn-layouts.cc
@@ -1135,7 +1135,8 @@ static bool _may_overwrite_pos(coord_def c)
const dungeon_feature_type grid = grd(c);
// Don't overwrite any stairs or branch entrances.
- if (grid >= DNGN_ENTER_SHOP && grid <= DNGN_EXIT_PORTAL_VAULT
+ if (grid >= DNGN_ENTER_SHOP && grid <= DNGN_TELEPORTER
+ || grid >= DNGN_ENTER_FIRST_PORTAL && grid <= DNGN_EXIT_LAST_PORTAL
|| grid == DNGN_EXIT_HELL)
{
return false;