Skip to content

Commit

Permalink
uses correct helper for light_cameras() sanity check (tgstation#75455)
Browse files Browse the repository at this point in the history
Touched it in tgstation#75302, just being explicit about what's intended here.
  • Loading branch information
ShizCalev authored May 16, 2023
1 parent 7523885 commit b9cf465
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/mob/living/silicon/ai/ai.dm
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@
for (var/datum/camerachunk/chunk as anything in eyeobj.visibleCameraChunks)
for (var/z_key in chunk.cameras)
for(var/obj/machinery/camera/camera as anything in chunk.cameras[z_key])
if (!camera || !camera.can_use() || get_dist(camera, eyeobj) > 7 || !camera.internal_light)
if(isnull(camera) || !camera.can_use() || get_dist(camera, eyeobj) > 7 || !camera.internal_light)
continue
visible |= camera

Expand Down

0 comments on commit b9cf465

Please sign in to comment.