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

🆑 LT3
fix: Fixed certain clothing sending suit sensor data when it shouldn't
be capable
/🆑
This commit is contained in:
lessthanthree
2024-09-14 22:39:14 +02:00
committed by GitHub
parent 0382e0b9ac
commit dda02feca6
+2
View File
@@ -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