summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/makeitem.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-06 16:13:04 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-06 16:13:04 +0000
commit2a50f2e864663a6e5415afb99df63df3e671e591 (patch)
tree98e8b53a0bb8f21a65fe733ba4a06909766b364c /crawl-ref/source/makeitem.cc
parent3839702b5dd49acb1b9ef6c04b65a64d9f5710d6 (diff)
downloadcrawl-ref-2a50f2e864663a6e5415afb99df63df3e671e591.tar.gz
crawl-ref-2a50f2e864663a6e5415afb99df63df3e671e591.zip
Make monster size checks for weapons and armor consistent with those for
players: torso size, not body size, counts. This should fix [2508934], without having to fix any monster flags :) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8928 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/makeitem.cc')
-rw-r--r--crawl-ref/source/makeitem.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/makeitem.cc b/crawl-ref/source/makeitem.cc
index 78d5513673..4843130936 100644
--- a/crawl-ref/source/makeitem.cc
+++ b/crawl-ref/source/makeitem.cc
@@ -3993,9 +3993,9 @@ void give_shield(monsters *mon, int level)
// If the monster is already wielding/carrying a two-handed weapon, it
// doesn't get a shield. (Monsters always prefer raw damage to protection!)
if (main_weap
- && hands_reqd(*main_weap, mon->body_size(PSIZE_BODY)) == HANDS_TWO
+ && hands_reqd(*main_weap, mon->body_size()) == HANDS_TWO
|| alt_weap
- && hands_reqd(*alt_weap, mon->body_size(PSIZE_BODY)) == HANDS_TWO)
+ && hands_reqd(*alt_weap, mon->body_size()) == HANDS_TWO)
{
return;
}