From f2d17ffe7ad3b397a7bb1db57821482e2e36b589 Mon Sep 17 00:00:00 2001 From: fernerr <35879136+fernerr@users.noreply.github.com> Date: Fri, 10 Jan 2020 21:54:19 +0100 Subject: [PATCH] Fixes glasses not having their color overridden via the loadout gear tweak (#7970) --- code/modules/mob/living/carbon/human/update_icons.dm | 3 +++ html/changelogs/200110-bugfix_glassescolor.yml | 4 ++++ 2 files changed, 7 insertions(+) create mode 100644 html/changelogs/200110-bugfix_glassescolor.yml diff --git a/code/modules/mob/living/carbon/human/update_icons.dm b/code/modules/mob/living/carbon/human/update_icons.dm index 248af7a9558..62d5ada50ca 100644 --- a/code/modules/mob/living/carbon/human/update_icons.dm +++ b/code/modules/mob/living/carbon/human/update_icons.dm @@ -651,6 +651,9 @@ There are several things that need to be remembered: else overlays_raw[GLASSES_LAYER] = image('icons/mob/eyes.dmi', glasses.icon_state) + if(glasses.color) + overlays_raw[GLASSES_LAYER].color = glasses.color + if(update_icons) update_icons() diff --git a/html/changelogs/200110-bugfix_glassescolor.yml b/html/changelogs/200110-bugfix_glassescolor.yml new file mode 100644 index 00000000000..514540f1fdd --- /dev/null +++ b/html/changelogs/200110-bugfix_glassescolor.yml @@ -0,0 +1,4 @@ +author: Ferner +delete-after: True +changes: + - bugfix: "Offworlder goggles will now apply the chosen loadout color properly."