summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-pick.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/mon-pick.cc')
-rw-r--r--crawl-ref/source/mon-pick.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/mon-pick.cc b/crawl-ref/source/mon-pick.cc
index bb4e392c2e..d608352219 100644
--- a/crawl-ref/source/mon-pick.cc
+++ b/crawl-ref/source/mon-pick.cc
@@ -22,9 +22,9 @@ int mons_level(int mcls, const level_id &place)
int monster_level = 0;
if (place.level_type == LEVEL_ABYSS)
- monster_level = ((mons_abyss(mcls)) ? 51 : 0);
+ monster_level = ((mons_abyss(mcls)) ? place.absdepth() : 0);
else if (place.level_type == LEVEL_PANDEMONIUM)
- monster_level = ((mons_pan(mcls)) ? 52 : 0);
+ monster_level = ((mons_pan(mcls)) ? place.absdepth() : 0);
else if (place.level_type == LEVEL_DUNGEON)
monster_level = branches[place.branch].mons_level_function(mcls);