diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-06 00:55:21 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-06 00:55:21 +0000 |
commit | a7b2e921730de47a8c3a60898af8ddeb75d7bada (patch) | |
tree | ca149caf97e0b9335fa99115b5f2724ce40df2a4 /crawl-ref/source/itemprop.cc | |
parent | 8e7ee98e5431a1bae43b253848a10e2ec2cb12b5 (diff) | |
download | crawl-ref-a7b2e921730de47a8c3a60898af8ddeb75d7bada.tar.gz crawl-ref-a7b2e921730de47a8c3a60898af8ddeb75d7bada.zip |
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
Diffstat (limited to 'crawl-ref/source/itemprop.cc')
-rw-r--r-- | crawl-ref/source/itemprop.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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); |