summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/branch.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-11-02 06:48:20 +0100
committerAdam Borowski <kilobyte@angband.pl>2013-11-02 13:44:54 +0100
commit6a31aa9e10181fa0bcdebe7ab263b7e428bd605a (patch)
treec62b9cdb1363bf1eb979f545dd66fa322df4a7b9 /crawl-ref/source/branch.h
parentea129f0f56d9dfc1b3abd5653b1737c2a6089684 (diff)
downloadcrawl-ref-6a31aa9e10181fa0bcdebe7ab263b7e428bd605a.tar.gz
crawl-ref-6a31aa9e10181fa0bcdebe7ab263b7e428bd605a.zip
Store the entry level for every branch (rather than just depth).
This allows moving branches around without breaking save compat or at least serious hacks. The portal stack can be probably dropped now: two copies of the same level can't exist anyway.
Diffstat (limited to 'crawl-ref/source/branch.h')
-rw-r--r--crawl-ref/source/branch.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/branch.h b/crawl-ref/source/branch.h
index 6f08220c4e..920f7a6872 100644
--- a/crawl-ref/source/branch.h
+++ b/crawl-ref/source/branch.h
@@ -45,7 +45,8 @@ struct Branch
};
extern const Branch branches[NUM_BRANCHES];
-extern FixedVector<int, NUM_BRANCHES> startdepth, brdepth;
+extern FixedVector<level_id, NUM_BRANCHES> brentry;
+extern FixedVector<int, NUM_BRANCHES> brdepth;
extern branch_type root_branch;
const Branch& your_branch();