From dda02feca62f21fbab4c24a2c5ef0f5b1b4152a4 Mon Sep 17 00:00:00 2001 From: lessthanthree <83487515+lessthnthree@users.noreply.github.com> Date: Sat, 14 Sep 2024 13:39:14 -0700 Subject: [PATCH] Fixes uniforms with no/broken sensors sending basic medical HUD data (#86612) ## About The Pull Request Checks the uniform for the presence of suit sensors entirely before caring about the mode they're set to. Uniforms spawn with a random sensor_mode regardless if they have sensors or not, so currently a piece of clothing that spawns SENSOR_COORDS will be added to the basic medical HUD even though its has_sensor var is NO_SENSORS :cl: LT3 fix: Fixed certain clothing sending suit sensor data when it shouldn't be capable /:cl: --- code/game/data_huds.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/game/data_huds.dm b/code/game/data_huds.dm index 51c46145f16..58cc789430a 100644 --- a/code/game/data_huds.dm +++ b/code/game/data_huds.dm @@ -28,6 +28,8 @@ var/obj/item/clothing/under/U = H.w_uniform if(!istype(U)) return FALSE + if(U.has_sensor < HAS_SENSORS) + return FALSE if(U.sensor_mode <= SENSOR_VITALS) return FALSE return TRUE