Skip to content

Commit

Permalink
turning in your stomach and making you feel sick
Browse files Browse the repository at this point in the history
  • Loading branch information
harryob committed Aug 30, 2023
1 parent 76024e2 commit d561774
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions code/modules/mob/living/carbon/human/update_icons.dm
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,20 @@ There are several things that need to be remembered:


/mob/living/carbon/human/apply_overlay(cache_index)
var/list/images = overlays_standing[cache_index]
var/image/images = overlays_standing[cache_index]

if(!islist(images))
images = list(images)
if(!images)
return

if(length(images))
for(var/image/current_image as anything in images)
if(islist(images))
var/list/overlays = images
for(var/image/current_image as anything in overlays)
current_image.appearance_flags |= RESET_COLOR
SEND_SIGNAL(src, COMSIG_HUMAN_OVERLAY_APPLIED, cache_index, images)
overlays += images
else
images.appearance_flags |= RESET_COLOR

SEND_SIGNAL(src, COMSIG_HUMAN_OVERLAY_APPLIED, cache_index, images)
overlays += images

/mob/living/carbon/human/remove_overlay(cache_index)
if(overlays_standing[cache_index])
Expand Down

0 comments on commit d561774

Please sign in to comment.