Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMelbert committed Jun 26, 2024
1 parent be37de6 commit 28c6fba
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions code/modules/mob/living/carbon/carbon_update_icons.dm
Original file line number Diff line number Diff line change
Expand Up @@ -343,13 +343,12 @@
damage_overlay.color = iter_part.damage_color
if(iter_part.burnstate)
damage_overlay.add_overlay("[iter_part.dmg_overlay_type]_[iter_part.body_zone]_0[iter_part.burnstate]")
if(!digi_filter && istype(iter_part, /obj/item/bodypart/leg) && (iter_part.bodytype & BODYTYPE_DIGITIGRADE))
if(!digi_filter && damage_overlay && (iter_part.bodytype & BODYTYPE_DIGITIGRADE))
iter_part.apply_digitigrade_filters(damage_overlay, src)
digi_filter = TRUE

if(isnull(damage_overlay))
return
if(digi_filter)
iter_part.apply_digitigrade_filters(damage_overlay, src)

overlays_standing[DAMAGE_LAYER] = damage_overlay
apply_overlay(DAMAGE_LAYER)
Expand Down

0 comments on commit 28c6fba

Please sign in to comment.