summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/items.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-05-12 20:18:24 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-05-12 20:18:24 +0000
commit5c4f3b7474b3dcadf255d43b87f2a7119d9127d4 (patch)
treeecdada128b93464498eb4d9e0f7f89319343996b /crawl-ref/source/items.cc
parent5f92d00d2f5b4973ab846e1f068ec1460e2eb9d5 (diff)
downloadcrawl-ref-5c4f3b7474b3dcadf255d43b87f2a7119d9127d4.tar.gz
crawl-ref-5c4f3b7474b3dcadf255d43b87f2a7119d9127d4.zip
Use wield_weapon(-) instead of unwield_item() when dropping/throwing a
wielded weapon, so inscriptions are respected. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9760 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/items.cc')
-rw-r--r--crawl-ref/source/items.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/items.cc b/crawl-ref/source/items.cc
index 3f5dfcf2e7..e5c356ba86 100644
--- a/crawl-ref/source/items.cc
+++ b/crawl-ref/source/items.cc
@@ -1983,7 +1983,7 @@ bool drop_item( int item_dropped, int quant_drop, bool try_offer )
if (item_dropped == you.equip[EQ_WEAPON]
&& quant_drop >= you.inv[item_dropped].quantity)
{
- if (!unwield_item())
+ if (!wield_weapon(true, PROMPT_GOT_SPECIAL))
return (false);
canned_msg( MSG_EMPTY_HANDED );
}