summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/place.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2011-10-27 15:06:03 +0200
committerAdam Borowski <kilobyte@angband.pl>2011-11-04 18:49:50 +0100
commit545da72da6e6bb1f571d8255d81a5d83e13c8fbd (patch)
tree84eb94ff762cc6f6ecd976be247e63182fd1b8ed /crawl-ref/source/place.cc
parentca7d5ef3540488a1d4ee577b1c21874676b655d6 (diff)
downloadcrawl-ref-545da72da6e6bb1f571d8255d81a5d83e13c8fbd.tar.gz
crawl-ref-545da72da6e6bb1f571d8255d81a5d83e13c8fbd.zip
Choose portal branch maps by DEPTH.
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 b1c320585a..a9fabc46d4 100644
--- a/crawl-ref/source/place.cc
+++ b/crawl-ref/source/place.cc
@@ -25,7 +25,7 @@ branch_type place_branch(unsigned short place)
int place_depth(unsigned short place)
{
- return place & 0xFF;
+ return (int8_t)(place & 0xFF);
}
unsigned short get_packed_place(branch_type branch, int subdepth)