From a7b2e921730de47a8c3a60898af8ddeb75d7bada Mon Sep 17 00:00:00 2001 From: dolorous Date: Fri, 6 Feb 2009 00:55:21 +0000 Subject: Fix previous change, so that e.g. kobolds can't wield two-handed weapons anymore. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8916 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/itemprop.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/itemprop.cc') diff --git a/crawl-ref/source/itemprop.cc b/crawl-ref/source/itemprop.cc index f7f7e7dd56..c8804b94fa 100644 --- a/crawl-ref/source/itemprop.cc +++ b/crawl-ref/source/itemprop.cc @@ -2029,9 +2029,9 @@ bool check_weapon_wieldable_size( const item_def &item, size_type size ) int fit = fit_weapon_wieldable_size( item, size ); // Adjust fit for size. - if (size < SIZE_MEDIUM && fit > 0) + if (size < SIZE_SMALL && fit > 0) fit--; - else if (size > SIZE_MEDIUM && fit < 0) + else if (size > SIZE_LARGE && fit < 0) fit++; return (fit == 0); -- cgit v1.2.3-54-g00ecf