summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/place.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-03-27 15:59:38 +0200
committerAdam Borowski <kilobyte@angband.pl>2012-03-27 15:59:38 +0200
commitb1116d438a905b1c3d19f3ca79022281989f77ba (patch)
treef5ed1d0b79781f8209c90b5fad083fa86ea848d7 /crawl-ref/source/place.cc
parent25daf8ecfabc000ee2c7b947454556d3ce6a319b (diff)
downloadcrawl-ref-b1116d438a905b1c3d19f3ca79022281989f77ba.tar.gz
crawl-ref-b1116d438a905b1c3d19f3ca79022281989f77ba.zip
Make the difficulty of branches independent of where they generated.
Diffstat (limited to 'crawl-ref/source/place.cc')
-rw-r--r--crawl-ref/source/place.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/place.cc b/crawl-ref/source/place.cc
index cd071c45a4..1a427e1f02 100644
--- a/crawl-ref/source/place.cc
+++ b/crawl-ref/source/place.cc
@@ -104,7 +104,7 @@ int absdungeon_depth(branch_type branch, int subdepth)
--subdepth;
while (branch != NUM_BRANCHES)
{
- subdepth += startdepth[branch];
+ subdepth += (branches[branch].mindepth + branches[branch].maxdepth) / 2;
branch = branches[branch].parent_branch;
}
return subdepth;