Clicking a filled inventory slot's background is now treated like clicking the item.

This commit is contained in:
Tastyfish
2016-03-28 05:24:00 -04:00
parent b40a6d2573
commit 53728f95fe
+4
View File
@@ -174,6 +174,10 @@
equip_to_slot_if_possible(C, slot)
else
equip_to_slot_if_possible(W, slot)
else
W = get_item_by_slot(slot)
if(W)
W.attack_hand(src)
if(ishuman(src) && W == src:head)
src:update_hair()