Fixes overlay update for washing bloody hands (#37094)

This commit is contained in:
pigeons
2018-04-11 08:30:35 -04:00
committed by CitadelStationBot
parent 4063781baf
commit d14df868cd
2 changed files with 2 additions and 4 deletions

View File

@@ -709,7 +709,6 @@
if(bloody_hands)
bloody_hands = 0
update_inv_gloves()
update_icons() //apply the now updated overlays to the mob
/mob/living/carbon/human/wash_cream()
if(creamed) //clean both to prevent a rare bug

View File

@@ -175,8 +175,7 @@ There are several things that need to be remembered:
var/obj/screen/inventory/inv = hud_used.inv_slots[slot_gloves]
inv.update_icon()
GET_COMPONENT(FR, /datum/component/forensics)
if(!gloves && FR && length(FR.blood_DNA))
if(!gloves && bloody_hands)
var/mutable_appearance/bloody_overlay = mutable_appearance('icons/effects/blood.dmi', "bloodyhands", -GLOVES_LAYER)
if(get_num_arms() < 2)
if(has_left_hand())
@@ -680,4 +679,4 @@ generate/load female uniform sprites matching all previously decided variables
dna.species.handle_hair(src)
update_inv_head()
update_inv_wear_mask()
update_inv_wear_mask()