summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells3.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-02 18:29:43 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-02 18:29:43 +0000
commit772dae4e1f099c285b2cdd8d5a0a8a0707c201ad (patch)
treef17822bbdab3c5dbfa6a23fb80c179359ac9923f /crawl-ref/source/spells3.cc
parent99f7bcaeb42ec9b6c22f6f24be42b43ed3a28fa4 (diff)
downloadcrawl-ref-772dae4e1f099c285b2cdd8d5a0a8a0707c201ad.tar.gz
crawl-ref-772dae4e1f099c285b2cdd8d5a0a8a0707c201ad.zip
Add more minor cosmetic fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8124 c06c8d41-db1a-0410-9941-cceddc491573
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;
}
}