Merge pull request #4024 from Tastyfish/clickyclick

Makes clicking a filled inventory slot's square be treated like clicking the item
This commit is contained in:
TheDZD
2016-03-29 17:14:39 -04:00
+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()