diff options
author | Adam Borowski <kilobyte@angband.pl> | 2011-12-28 05:56:51 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-01-03 04:45:58 +0100 |
commit | aa2c033f1e51d41b6e12b0bba858e94cd26aa46c (patch) | |
tree | 149c7f48355a7c8804d4f0f05111415f3624d802 /crawl-ref/source/place.cc | |
parent | 6bd91421d6f26418f4fc84bfb692a3b132183780 (diff) | |
download | crawl-ref-aa2c033f1e51d41b6e12b0bba858e94cd26aa46c.tar.gz crawl-ref-aa2c033f1e51d41b6e12b0bba858e94cd26aa46c.zip |
Don't explicitely pass absdepth:branch in the dungeon builder.
There's no support for producing maps for a level you're not on, around half
of functions assumed this.
Diffstat (limited to 'crawl-ref/source/place.cc')
-rw-r--r-- | crawl-ref/source/place.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/place.cc b/crawl-ref/source/place.cc index a0c705e8c2..bf63f6292c 100644 --- a/crawl-ref/source/place.cc +++ b/crawl-ref/source/place.cc @@ -124,6 +124,11 @@ int subdungeon_depth(branch_type branch, int depth) return d; } +int absdungeon_depth() +{ + return you.absdepth0; +} + int player_branch_depth() { return subdungeon_depth(you.where_are_you, you.absdepth0); |