summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/travel.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-18 14:13:15 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-18 14:13:15 +0000
commit8a2d405ada0648369b43a954fbaf2333186cae4b (patch)
tree2ae5dd2f36e468d594b1cd03fb66e5313dcfd079 /crawl-ref/source/travel.cc
parenteaebdf783c9f82f01854421b9825988824410684 (diff)
downloadcrawl-ref-8a2d405ada0648369b43a954fbaf2333186cae4b.tar.gz
crawl-ref-8a2d405ada0648369b43a954fbaf2333186cae4b.zip
Fix royal jelly death in the Abyss destroying you.your_level.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7861 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/travel.cc')
-rw-r--r--crawl-ref/source/travel.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/travel.cc b/crawl-ref/source/travel.cc
index bd330549c2..7148b04f38 100644
--- a/crawl-ref/source/travel.cc
+++ b/crawl-ref/source/travel.cc
@@ -3026,6 +3026,12 @@ level_id level_id::current()
return id;
}
+int level_id::dungeon_absdepth() const
+{
+ ASSERT(branch != NUM_BRANCHES && depth != -1);
+ return absdungeon_depth(branch, depth);
+}
+
int level_id::absdepth() const
{
switch (level_type)