diff options
author | Adam Borowski <kilobyte@angband.pl> | 2011-10-26 16:44:21 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2011-11-04 18:49:50 +0100 |
commit | acbc1dae1491c9d986fd81acb70a91ba8785bf4d (patch) | |
tree | 7c05c37668f14a4c3bb624fa7c6b511dbbcab1c0 /crawl-ref/source/notes.cc | |
parent | ff3b896cb6e3770cd593b867405fde9a94bba00b (diff) | |
download | crawl-ref-acbc1dae1491c9d986fd81acb70a91ba8785bf4d.tar.gz crawl-ref-acbc1dae1491c9d986fd81acb70a91ba8785bf4d.zip |
Split the branch data into read-only and mutable parts.
As a side effect, branches can now be shortened without breaking major save
compat.
This commit itself doesn't preserve compat though, even though it'd be easy
-- other parts are too nasty already.
Diffstat (limited to 'crawl-ref/source/notes.cc')
-rw-r--r-- | crawl-ref/source/notes.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/notes.cc b/crawl-ref/source/notes.cc index c4e8050206..a782d2a50e 100644 --- a/crawl-ref/source/notes.cc +++ b/crawl-ref/source/notes.cc @@ -76,7 +76,7 @@ static int _dungeon_branch_depth(uint8_t branch) { if (branch >= NUM_BRANCHES) return -1; - return branches[branch].depth; + return brdepth[branch]; } static bool _is_noteworthy_dlevel(unsigned short place) |