Skip to content

Commit

Permalink
Merge pull request #1181 from BigHornDragon/clean-blood-splatter-icon
Browse files Browse the repository at this point in the history
Fixed blood on shoes not cleaning
  • Loading branch information
MosleyTheMalO committed Jul 20, 2024
2 parents b41b2b6 + c9a5e14 commit b4f453b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions code/game/objects/items.dm
Original file line number Diff line number Diff line change
Expand Up @@ -696,9 +696,10 @@ GLOBAL_VAR_INIT(embedpocalypse, FALSE) // if true, all items will be able to emb

/obj/item/clean_blood()
. = ..()
if(.)
if(blood_splatter_icon)
cut_overlay(blood_splatter_icon)
// Quick fix for shoes being clean but the blood splatter was still on them, I suspect it is blood_dna on shoes were setting to null before the if (maybe it is a racing condition)
if(. || blood_splatter_icon)
cut_overlay(blood_splatter_icon)
blood_splatter_icon = null

/obj/item/clothing/gloves/clean_blood()
. = ..()
Expand Down

0 comments on commit b4f453b

Please sign in to comment.