summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dgn-overview.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-11-20 20:14:08 +0100
committerAdam Borowski <kilobyte@angband.pl>2013-11-20 20:14:08 +0100
commit283eb99bda8bde4f18a5fe476b1e19ce5bf857b2 (patch)
tree2282ce34e5b2961ad5c20e882c448145a0268a11 /crawl-ref/source/dgn-overview.cc
parentbce0512081e8b12442c9c34421de40c8a3b1f427 (diff)
downloadcrawl-ref-283eb99bda8bde4f18a5fe476b1e19ce5bf857b2.tar.gz
crawl-ref-283eb99bda8bde4f18a5fe476b1e19ce5bf857b2.zip
Don't claim that Vaults spawn on D:2-6.
In transferred saves, we don't have information about the depth range used, so the range comes from the current version of the game -- ie, it describes what would happen if you started a new game right now. On the other hand, the parent branch came from the old version. Be consistent and knowingly provide false data -- this is less jarring than being truthful for the branch but wrong about depths.
Diffstat (limited to 'crawl-ref/source/dgn-overview.cc')
-rw-r--r--crawl-ref/source/dgn-overview.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/dgn-overview.cc b/crawl-ref/source/dgn-overview.cc
index 30c7d54b38..6892b11bdb 100644
--- a/crawl-ref/source/dgn-overview.cc
+++ b/crawl-ref/source/dgn-overview.cc
@@ -347,7 +347,7 @@ static string _get_unseen_branches()
if (!stair_level.count(branch))
{
- const branch_type parent = parent_branch((branch_type)i);
+ const branch_type parent = branches[branch].parent_branch;
// Root branches.
if (parent == NUM_BRANCHES)
continue;