diff options
author | Adam Borowski <kilobyte@angband.pl> | 2013-11-02 06:48:20 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2013-11-02 13:44:54 +0100 |
commit | 6a31aa9e10181fa0bcdebe7ab263b7e428bd605a (patch) | |
tree | c62b9cdb1363bf1eb979f545dd66fa322df4a7b9 /crawl-ref/source/wiz-dgn.cc | |
parent | ea129f0f56d9dfc1b3abd5653b1737c2a6089684 (diff) | |
download | crawl-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/wiz-dgn.cc')
-rw-r--r-- | crawl-ref/source/wiz-dgn.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/crawl-ref/source/wiz-dgn.cc b/crawl-ref/source/wiz-dgn.cc index 2df952026d..7eff626aab 100644 --- a/crawl-ref/source/wiz-dgn.cc +++ b/crawl-ref/source/wiz-dgn.cc @@ -340,11 +340,10 @@ void wizard_list_branches() { if (parent_branch((branch_type)i) == NUM_BRANCHES) continue; - else if (startdepth[i] != -1) + else if (brentry[i].is_valid()) { - mprf(MSGCH_DIAGNOSTICS, "Branch %d (%s) is on level %d of %s", - i, branches[i].longname, startdepth[i], - branches[parent_branch((branch_type)i)].abbrevname); + mprf(MSGCH_DIAGNOSTICS, "Branch %d (%s) is on %s", + i, branches[i].longname, brentry[i].describe().c_str()); } else if (is_random_subbranch((branch_type)i)) { |