summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/travel.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-01 16:07:23 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-01 16:07:23 +0000
commitce03c65515786c7f3c019314fe44019258236a94 (patch)
tree4f2215b3c665329834e2d654af4c2d43e009b3b9 /crawl-ref/source/travel.cc
parent8f8b5b59f645ca88bf6b821b04a899b8d779ea45 (diff)
downloadcrawl-ref-ce03c65515786c7f3c019314fe44019258236a94.tar.gz
crawl-ref-ce03c65515786c7f3c019314fe44019258236a94.zip
Slime:6 teleport control is enabled even if you kill the royal jelly off-level (sorear). TC is also enabled when banishing the royal jelly, which is a bit cheesy...
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4026 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/travel.cc')
-rw-r--r--crawl-ref/source/travel.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/travel.cc b/crawl-ref/source/travel.cc
index f48abe8b81..20ec7cd138 100644
--- a/crawl-ref/source/travel.cc
+++ b/crawl-ref/source/travel.cc
@@ -2927,6 +2927,11 @@ level_id level_id::current()
return id;
}
+int level_id::absdepth() const
+{
+ return absdungeon_depth(branch, depth);
+}
+
level_id level_id::get_next_level_id(const coord_def &pos)
{
int gridc = grd[pos.x][pos.y];