From 834b2b5479723c391ff2dfdb70940da9592b4bce Mon Sep 17 00:00:00 2001 From: dolorous Date: Sat, 3 Jan 2009 02:30:57 +0000 Subject: Attempt to fix oddity when equipping undead when e.g. an orc warrior dies and leaves its corpse and equipment are on the floor, a ghoul then dies and leaves its equipment on the same spot, and an attempt is then made to animate the dead. With this change, the orc zombie will be properly equipped. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8152 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/spells3.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'crawl-ref/source/spells3.cc') diff --git a/crawl-ref/source/spells3.cc b/crawl-ref/source/spells3.cc index ca3c85ca32..552fa11bd4 100644 --- a/crawl-ref/source/spells3.cc +++ b/crawl-ref/source/spells3.cc @@ -664,9 +664,7 @@ static void _equip_undead(const coord_def &a, int corps, int monster, { item_def item(mitm[objl]); - if (item.base_type == OBJ_CORPSES) - first_obj = NON_ITEM; - else if (first_obj == NON_ITEM) + if (item.base_type != OBJ_CORPSES && first_obj == NON_ITEM) first_obj = objl; objl = item.link; -- cgit v1.2.3-54-g00ecf