[MIRROR] Fixes malf camera upgrade appearing on security camera consoles [MDB IGNORE] (#19870)

* Fixes malf camera upgrade appearing on security camera consoles (#73970)

## About The Pull Request

Wow that was easier than I thought

Malf AI camera upgrade no longer shows up camera consoles.
Advanced Camera consoles probably still show it but those are harder to
get so someone else can fix those

## Why It's Good For The Game

It is admittedly very funny to instantly valid a malf ai but probably
not fun

## Changelog

🆑 Melbert
fix: Malf AI's xray camera upgrade no longer shows on station security
camera consoles
/🆑

* Fixes malf camera upgrade appearing on security camera consoles

---------

Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com>
This commit is contained in:
SkyratBot
2023-03-15 01:52:02 +01:00
committed by GitHub
parent e2f43e53b9
commit e71fc67c46
2 changed files with 2 additions and 2 deletions
@@ -149,7 +149,7 @@
last_camera_turf = new_cam_turf
//Here we gather what's visible from the camera's POV based on its view_range and xray modifier if present
var/list/visible_things = active_camera.isXRay() ? range(active_camera.view_range, new_cam_turf) : view(active_camera.view_range, new_cam_turf)
var/list/visible_things = active_camera.isXRay(ignore_malf_upgrades = TRUE) ? range(active_camera.view_range, new_cam_turf) : view(active_camera.view_range, new_cam_turf)
for(var/turf/visible_turf in visible_things)
visible_turfs += visible_turf