Skip to content

Commit

Permalink
Check appearance_flags properly for manually propagating height fil…
Browse files Browse the repository at this point in the history
…ters
  • Loading branch information
Absolucy committed Jan 12, 2025
1 parent 419774c commit 8242029
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions code/modules/mob/living/carbon/human/human_update_icons.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1078,9 +1078,7 @@ generate/load female uniform sprites matching all previously decided variables
if(should_update)
appearance.update_filters()

// Kinda gross but because many humans overlays do not use KEEP_TOGETHER we need to manually propogate the filter
// Otherwise overlays, such as worn overlays on icons, won't have the filter "applied", and the effect kinda breaks
if(!(appearance.appearance_flags & KEEP_TOGETHER))
if((appearance.appearance_flags & KEEP_APART) && !(appearance.appearance_flags & RESET_TRANSFORM))
for(var/image/overlay in list() + appearance.underlays + appearance.overlays)
apply_height_filters(overlay, parent_adjust_y=adjust_y)

Expand Down

0 comments on commit 8242029

Please sign in to comment.