summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-pick.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-09-05 11:59:30 +0200
committerAdam Borowski <kilobyte@angband.pl>2012-09-05 11:59:30 +0200
commitf6ea5cb561a1b49a3e3c21a140230d965d915a3b (patch)
tree82c7d0608562adcfcf43d8c783bf5ae6304809e5 /crawl-ref/source/mon-pick.cc
parent3bc4743eecc820caf232faf9899e6284e07ed27c (diff)
downloadcrawl-ref-f6ea5cb561a1b49a3e3c21a140230d965d915a3b.tar.gz
crawl-ref-f6ea5cb561a1b49a3e3c21a140230d965d915a3b.zip
Rename mons_level() to mons_depth().
Rationale: http://www.giantitp.com/comics/oots0012.html
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 681ec9653f..1ad4cab961 100644
--- a/crawl-ref/source/mon-pick.cc
+++ b/crawl-ref/source/mon-pick.cc
@@ -34,7 +34,7 @@ typedef struct
#include "mon-pick-data.h"
// NOTE: The lower the level the earlier a monster may appear.
-int mons_level(monster_type mcls, branch_type branch)
+int mons_depth(monster_type mcls, branch_type branch)
{
// legacy function, until ZotDef is ported
for (pop_entry *pe = population[branch].pop; pe->mons; pe++)
@@ -105,7 +105,7 @@ void debug_monpick()
for (monster_type m = MONS_0; m < NUM_MONSTERS; ++m)
{
- int lev = mons_level(m, br);
+ int lev = mons_depth(m, br);
int rare = mons_rarity(m, br);
if (lev < DEPTH_NOWHERE && !rare)