summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells3.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/spells3.cc')
-rw-r--r--crawl-ref/source/spells3.cc7
1 files changed, 4 insertions, 3 deletions
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;
}
}