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

🆑 LT3
fix: Ctrl+click on equipped uniforms enables suit sensors as expected
/🆑
This commit is contained in:
lessthanthree
2024-09-11 17:46:46 -06:00
committed by GitHub
parent 8dcf08bedf
commit 6ee6660d77
+2 -4
View File
@@ -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