From 9a60e7fe182867b3634d16b1f394b61abfe4c600 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Fri, 19 Aug 2022 17:19:21 +0200 Subject: [PATCH] [MIRROR] Add more checks to view sensor code [MDB IGNORE] (#15712) * Add more checks to view sensor code (#69297) See title, these checks are based on those used by set_turf_examine_tab for the statpanel. Fixes #68596 (in the specific case of the plasma image holder in the bug, it has MOUSE_OPACITY_TRANSPARENT) * Add more checks to view sensor code Co-authored-by: RandomGamer123 <31096837+RandomGamer123@users.noreply.github.com> --- code/modules/wiremod/components/sensors/view_sensor.dm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/modules/wiremod/components/sensors/view_sensor.dm b/code/modules/wiremod/components/sensors/view_sensor.dm index 565f9fca325..2f0a4faacac 100644 --- a/code/modules/wiremod/components/sensors/view_sensor.dm +++ b/code/modules/wiremod/components/sensors/view_sensor.dm @@ -53,9 +53,12 @@ var/object_list = list() for(var/atom/movable/target in view(5, get_turf(parent.shell))) + if(target.mouse_opacity == MOUSE_OPACITY_TRANSPARENT) + continue if(target.invisibility > see_invisible) continue - + if(target.IsObscured()) + continue object_list += target result.set_output(object_list)