Merge pull request #5756 from Cameron653/Boot_fix

Fixed an issue with multiple boot/shoe overlays.
This commit is contained in:
Novacat
2019-08-31 15:05:06 -04:00
committed by GitHub
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -513,6 +513,7 @@
if(usr.put_in_hands(holding))
usr.visible_message("<span class='danger'>\The [usr] pulls a knife out of their boot!</span>")
holding = null
overlays -= image(icon, "[icon_state]_knife")
else
usr << "<span class='warning'>Your need an empty, unbroken hand to do that.</span>"
holding.forceMove(src)
@@ -557,7 +558,6 @@
update_icon()
/obj/item/clothing/shoes/update_icon()
overlays.Cut()
if(holding)
overlays += image(icon, "[icon_state]_knife")
if(ismob(usr))