summaryrefslogtreecommitdiffstats
path: root/crawl-ref
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-06-29 14:52:38 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-06-29 14:52:38 +0000
commit5060b8b617ae6987eb81ba9fde12ff65e9b2beb2 (patch)
treed3b4700e917194d11034805d1687d09dd7a16040 /crawl-ref
parent37d741587db5ee225783db2adf7c06aef8dbcbf2 (diff)
downloadcrawl-ref-5060b8b617ae6987eb81ba9fde12ff65e9b2beb2.tar.gz
crawl-ref-5060b8b617ae6987eb81ba9fde12ff65e9b2beb2.zip
Add minor cosmetic fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10075 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref')
-rw-r--r--crawl-ref/source/mon-util.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc
index 11009cef34..2ee32ba969 100644
--- a/crawl-ref/source/mon-util.cc
+++ b/crawl-ref/source/mon-util.cc
@@ -3903,7 +3903,7 @@ bool monsters::can_wield(const item_def& item, bool ignore_curse,
bool ignore_transform) const
{
// Monsters can only wield weapons or go unarmed (OBJ_UNASSIGNED
- // means unarmed)
+ // means unarmed).
if (item.base_type != OBJ_WEAPONS && item.base_type != OBJ_UNASSIGNED)
return (false);
@@ -3940,7 +3940,7 @@ bool monsters::can_wield(const item_def& item, bool ignore_curse,
// If we're already wielding it, then of course we can wield it.
if (&item == weap1 || &item == weap2)
- return(true);
+ return (true);
// Barehanded needs two hands.
const bool two_handed = item.base_type == OBJ_UNASSIGNED
@@ -3951,7 +3951,7 @@ bool monsters::can_wield(const item_def& item, bool ignore_curse,
{
ASSERT(!(weap1 && weap2));
- if (!ignore_shield && two_handed)
+ if (two_handed && !ignore_shield)
return (false);
_shield = &mitm[inv[MSLOT_SHIELD]];