summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/l_dgnmon.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-03-22 15:53:30 +0100
committerAdam Borowski <kilobyte@angband.pl>2012-03-22 22:54:42 +0100
commit889c096052179aa37a048ee9ed35153a6bbe30f1 (patch)
tree9b6e9a9a4ba9eec31783d1fe4f35d6ca57102b5e /crawl-ref/source/l_dgnmon.cc
parent3565ecf6be49a441389505484de12b63b42d3bc2 (diff)
downloadcrawl-ref-889c096052179aa37a048ee9ed35153a6bbe30f1.tar.gz
crawl-ref-889c096052179aa37a048ee9ed35153a6bbe30f1.zip
Use monster_type nearly everywhere.
Omitted: * mspec.type (uses a lot of magic values in the negatives) * item_def.orig_monnum (todo, +1 trick) A few minor problems are fixed here: * renamed gas spores passed mindex for monster_type * demon summoning would break on addition/deletion of demon types * vaults spawning zombified uniques would fail to mark them as used
Diffstat (limited to 'crawl-ref/source/l_dgnmon.cc')
-rw-r--r--crawl-ref/source/l_dgnmon.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/l_dgnmon.cc b/crawl-ref/source/l_dgnmon.cc
index cc330ca736..ffeef7d70b 100644
--- a/crawl-ref/source/l_dgnmon.cc
+++ b/crawl-ref/source/l_dgnmon.cc
@@ -133,7 +133,7 @@ static int dgn_set_random_mon_list(lua_State *ls)
}
if (mon.type == -1)
mon.type = MONS_PROGRAM_BUG;
- name = mons_type_name(mon.type, DESC_PLAIN);
+ name = mons_type_name(static_cast<monster_type>(mon.type), DESC_PLAIN);
}
mons.push_back(mon);