From 1fdc8de4e78e80631c41d3c9d5d98024330b5655 Mon Sep 17 00:00:00 2001 From: ike709 Date: Sat, 11 Dec 2021 05:55:46 -0600 Subject: [PATCH] Fixes a bad switch case in `get_id_photo()` (#17204) --- code/datums/datacore.dm | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/code/datums/datacore.dm b/code/datums/datacore.dm index 56cbe59354d..9d8a922134d 100644 --- a/code/datums/datacore.dm +++ b/code/datums/datacore.dm @@ -491,12 +491,13 @@ GLOBAL_VAR_INIT(record_id_num, 1001) clothes_s = new /icon('icons/mob/clothing/uniform.dmi', "syndicate_s") clothes_s.Blend(new /icon('icons/mob/clothing/feet.dmi', "jackboots"), ICON_UNDERLAY) clothes_s.Blend(new /icon('icons/mob/clothing/hands.dmi', "swat_gl"), ICON_UNDERLAY) - else if(H.mind && (H.mind.assigned_role in get_all_centcom_jobs())) - clothes_s = new /icon('icons/mob/clothing/uniform.dmi', "officer_s") - clothes_s.Blend(new /icon('icons/mob/clothing/feet.dmi', "laceups"), ICON_UNDERLAY) else - clothes_s = new /icon('icons/mob/clothing/uniform.dmi', "grey_s") - clothes_s.Blend(new /icon('icons/mob/clothing/feet.dmi', "black"), ICON_UNDERLAY) + if(H.mind && (H.mind.assigned_role in get_all_centcom_jobs())) + clothes_s = new /icon('icons/mob/clothing/uniform.dmi', "officer_s") + clothes_s.Blend(new /icon('icons/mob/clothing/feet.dmi', "laceups"), ICON_UNDERLAY) + else + clothes_s = new /icon('icons/mob/clothing/uniform.dmi', "grey_s") + clothes_s.Blend(new /icon('icons/mob/clothing/feet.dmi', "black"), ICON_UNDERLAY) preview_icon.Blend(face_s, ICON_OVERLAY) // Why do we do this twice if(clothes_s)