summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mapdef.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-03 10:47:44 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-03 10:47:44 +0000
commitfb869dee39e5953d9240ac1344d029c3ff62d624 (patch)
treeee2a92547a332d91ff0cfafb6e7927868cf5b84c /crawl-ref/source/mapdef.cc
parentdf23c385f390c4a7beb7c24826085c35e6145b95 (diff)
downloadcrawl-ref-fb869dee39e5953d9240ac1344d029c3ff62d624.tar.gz
crawl-ref-fb869dee39e5953d9240ac1344d029c3ff62d624.zip
[2468791] Reduce distinction between minivaults and floating vaults. All vaults are now handled by _build_vaults.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8169 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mapdef.cc')
-rw-r--r--crawl-ref/source/mapdef.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/crawl-ref/source/mapdef.cc b/crawl-ref/source/mapdef.cc
index b8c48bccb9..21b26518a4 100644
--- a/crawl-ref/source/mapdef.cc
+++ b/crawl-ref/source/mapdef.cc
@@ -1590,7 +1590,7 @@ bool map_def::has_depth() const
bool map_def::is_minivault() const
{
- return (orient == MAP_NONE);
+ return (has_tag("minivault"));
}
// Tries to dock a floating vault - push it to one edge of the level.
@@ -1848,6 +1848,13 @@ std::string map_def::resolve()
void map_def::fixup()
{
normalise();
+
+ // Fixup minivaults into floating vaults tagged "minivault".
+ if (orient == MAP_NONE)
+ {
+ orient = MAP_FLOAT;
+ tags += " minivault";
+ }
}
bool map_def::has_tag(const std::string &tagwanted) const