From 6ee6660d77463df2f33da7588cd7e5c3c7993b48 Mon Sep 17 00:00:00 2001 From: lessthanthree <83487515+lessthnthree@users.noreply.github.com> Date: Wed, 11 Sep 2024 16:46:46 -0700 Subject: [PATCH] Fixes ctrl-click not enabling suit sensors (#86599) ## About The Pull Request Fixes the ctrl-click action on undershirt clothing changing the suit sensors mode var but not calling the proc required to have the sensors added to the tracking list. ## Changelog :cl: LT3 fix: Ctrl+click on equipped uniforms enables suit sensors as expected /:cl: --- code/modules/clothing/under/_under.dm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/code/modules/clothing/under/_under.dm b/code/modules/clothing/under/_under.dm index 226346fc812..4da6f8e33ac 100644 --- a/code/modules/clothing/under/_under.dm +++ b/code/modules/clothing/under/_under.dm @@ -379,10 +379,7 @@ if(SENSOR_COORDS) to_chat(user_mob, span_notice("Your suit will now report your exact vital lifesigns as well as your coordinate position.")) - if(ishuman(loc)) - var/mob/living/carbon/human/H = loc - if(H.w_uniform == src) - H.update_suit_sensors() + update_wearer_status() /obj/item/clothing/under/item_ctrl_click(mob/user) if(!can_toggle_sensors(user)) @@ -390,6 +387,7 @@ sensor_mode = SENSOR_COORDS balloon_alert(user, "set to tracking") + update_wearer_status() return CLICK_ACTION_SUCCESS /// Checks if the toggler is allowed to toggle suit sensors currently