diff options
author | Matthew Cline <zelgadis@sourceforge.net> | 2009-11-10 23:18:30 -0800 |
---|---|---|
committer | Matthew Cline <zelgadis@sourceforge.net> | 2009-11-10 23:20:10 -0800 |
commit | 25e42bedb537cfcf27d837d59df48e42e93f2bd4 (patch) | |
tree | 9088ff06a80c6008f573d0de538f244200c212f6 /crawl-ref/source/spells3.cc | |
parent | a7ae274043d1829aedc5b9eb66235d720343e5bc (diff) | |
download | crawl-ref-25e42bedb537cfcf27d837d59df48e42e93f2bd4.tar.gz crawl-ref-25e42bedb537cfcf27d837d59df48e42e93f2bd4.zip |
Corpse names for unusally named monsters
Fix corpse names (and zombie names) for monsters which are named with
name_adjective, name_suffix or name_replace.
Diffstat (limited to 'crawl-ref/source/spells3.cc')
-rw-r--r-- | crawl-ref/source/spells3.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/crawl-ref/source/spells3.cc b/crawl-ref/source/spells3.cc index f235c04520..97b2cb04d0 100644 --- a/crawl-ref/source/spells3.cc +++ b/crawl-ref/source/spells3.cc @@ -984,7 +984,13 @@ static bool _raise_remains(const coord_def &pos, int corps, beh_type beha, const int monnum = item.orig_monnum - 1; if (is_named_corpse(item)) - name_zombie(&menv[monster], monnum, get_corpse_name(item)); + { + unsigned long name_type; + std::string name = get_corpse_name(item, &name_type); + + if (name_type == 0 || name_type == MF_NAME_REPLACE) + name_zombie(&menv[monster], monnum, name); + } equip_undead(pos, corps, monster, monnum); |