mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 16:18:01 +01:00
[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>
This commit is contained in:
co-authored by
RandomGamer123
parent
272b17736d
commit
9a60e7fe18
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user