From 772dae4e1f099c285b2cdd8d5a0a8a0707c201ad Mon Sep 17 00:00:00 2001 From: dolorous Date: Fri, 2 Jan 2009 18:29:43 +0000 Subject: Add more minor cosmetic fixes. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8124 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/spells3.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/spells3.cc') diff --git a/crawl-ref/source/spells3.cc b/crawl-ref/source/spells3.cc index 5c5eff2ae3..3d6cbb50b4 100644 --- a/crawl-ref/source/spells3.cc +++ b/crawl-ref/source/spells3.cc @@ -699,7 +699,7 @@ static void _equip_undead(const coord_def &a, int corps, int monster, // Stop equipping monster if the item probably didn't originally // belong to the monster. - if ( (origin_known(item) && (item.orig_monnum - 1) != monnum) + if ((origin_known(item) && (item.orig_monnum - 1) != monnum) || (item.flags & (ISFLAG_DROPPED | ISFLAG_THROWN)) || item.base_type == OBJ_CORPSES) { @@ -708,7 +708,7 @@ static void _equip_undead(const coord_def &a, int corps, int monster, mon_inv_type mslot; - switch(item.base_type) + switch (item.base_type) { case OBJ_WEAPONS: if (mon->inv[MSLOT_WEAPON] != NON_ITEM) @@ -726,7 +726,8 @@ static void _equip_undead(const coord_def &a, int corps, int monster, return; } else - // The undead are too stupid to switch between weapons. + // The undead are too stupid to switch between + // weapons. continue; } } -- cgit v1.2.3-54-g00ecf