summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/maps.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-03-08 21:23:05 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-03-08 21:23:05 +0000
commit7751a0c56767cd51e8f854f1b42261424fa6e4d9 (patch)
treeac25ad46d83f8ecc4796ca4e540ecb3671095756 /crawl-ref/source/maps.cc
parentb2be52a8b750f85a586ec399df8ae364df498cc2 (diff)
downloadcrawl-ref-7751a0c56767cd51e8f854f1b42261424fa6e4d9.tar.gz
crawl-ref-7751a0c56767cd51e8f854f1b42261424fa6e4d9.zip
Added dummy vault to prevent too much repetition of the early-game vaults (we
only have one early-game vault). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@998 c06c8d41-db1a-0410-9941-cceddc491573
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 f4e0033b2e..d76b8c4268 100644
--- a/crawl-ref/source/maps.cc
+++ b/crawl-ref/source/maps.cc
@@ -318,6 +318,9 @@ int random_map_for_depth(int depth, bool want_minivault)
mapindex = i;
}
+ if (mapindex != -1 && vdefs[mapindex].has_tag("dummy"))
+ mapindex = -1;
+
return (mapindex);
}