summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/place.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2010-02-10 14:34:25 +0100
committerAdam Borowski <kilobyte@angband.pl>2010-02-10 14:34:54 +0100
commitbbe824de9cef6f746f05939cbc76a4f3ec6e38fd (patch)
tree618e061b50262da061baf35bda6f84c7ee82b57e /crawl-ref/source/place.cc
parent923974d928f4dd5977ca8ef1537484b419925ca7 (diff)
downloadcrawl-ref-bbe824de9cef6f746f05939cbc76a4f3ec6e38fd.tar.gz
crawl-ref-bbe824de9cef6f746f05939cbc76a4f3ec6e38fd.zip
Rename hilariously misnamed you.your_level to you.absdepth0.
Diffstat (limited to 'crawl-ref/source/place.cc')
-rw-r--r--crawl-ref/source/place.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/place.cc b/crawl-ref/source/place.cc
index ec5384d87b..1d3d81d5b4 100644
--- a/crawl-ref/source/place.cc
+++ b/crawl-ref/source/place.cc
@@ -55,7 +55,7 @@ unsigned short get_packed_place( branch_type branch, int subdepth,
unsigned short get_packed_place()
{
return get_packed_place(you.where_are_you,
- subdungeon_depth(you.where_are_you, you.your_level),
+ subdungeon_depth(you.where_are_you, you.absdepth0),
you.level_type);
}
@@ -179,7 +179,7 @@ int subdungeon_depth(branch_type branch, int depth)
int player_branch_depth()
{
- return subdungeon_depth(you.where_are_you, you.your_level);
+ return subdungeon_depth(you.where_are_you, you.absdepth0);
}
// Returns true if exits from this type of level involve going upstairs.