summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/maps.cc
diff options
context:
space:
mode:
authorVsevolod Kozlov <zaba@wybt.net>2014-06-28 20:15:20 +0400
committerVsevolod Kozlov <zaba@wybt.net>2014-06-28 20:15:49 +0400
commit80c259224f81cda27f762bbf5354e7e2256efa14 (patch)
tree5ee1295e57d0b9271bed3eb86b163ccf753733d9 /crawl-ref/source/maps.cc
parent0487cf09ed8302f02a89dbeeda0bd1b4548b3e10 (diff)
downloadcrawl-ref-80c259224f81cda27f762bbf5354e7e2256efa14.tar.gz
crawl-ref-80c259224f81cda27f762bbf5354e7e2256efa14.zip
Don't place can_overwrite vaults on top of no_tele_into squares.
Diffstat (limited to 'crawl-ref/source/maps.cc')
-rw-r--r--crawl-ref/source/maps.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/maps.cc b/crawl-ref/source/maps.cc
index a17042a813..ee24c43c35 100644
--- a/crawl-ref/source/maps.cc
+++ b/crawl-ref/source/maps.cc
@@ -444,6 +444,13 @@ static bool _map_safe_vault_place(const map_def &map,
return false;
}
}
+ else if (env.pgrid(cp) & FPROP_NO_TELE_INTO)
+ {
+ // Don't place can_overwrite vaults on squares that can't be
+ // teleported into, because it's used for things that are
+ // expected to be connected.
+ return false;
+ }
// Don't overwrite features other than floor, rock wall, doors,
// nor water, if !water_ok.