From 6dca0fa1e8f2b2d6509e30e9b73c5104e8792709 Mon Sep 17 00:00:00 2001 From: Adam Borowski Date: Sun, 25 Oct 2009 14:43:26 +0100 Subject: Make all but one weapon size checks use you.could_wield(), they were out of sync, that caused autoexplore ignore butchering knives for nagas, many weapons being randomly shown as useless while perfectly wieldable, and so on. --- crawl-ref/source/itemname.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/itemname.cc') diff --git a/crawl-ref/source/itemname.cc b/crawl-ref/source/itemname.cc index 17a499f1e0..72fdb59a01 100644 --- a/crawl-ref/source/itemname.cc +++ b/crawl-ref/source/itemname.cc @@ -2502,7 +2502,7 @@ bool is_useless_item(const item_def &item, bool temp) switch (item.base_type) { case OBJ_WEAPONS: - if (!check_weapon_wieldable_size(item, you.body_size(PSIZE_BODY, !temp)) + if (!you.could_wield(item, true) && !is_throwable(&you, item)) { // Weapon is too large (or small) to be wielded and cannot be -- cgit v1.2.3-54-g00ecf