breaker of rules, I can change your mind (#27235)

This commit is contained in:
Qwertytoforty
2024-10-29 21:44:36 +00:00
committed by GitHub
parent 63a2ba006a
commit f38ccd7b54
4 changed files with 17 additions and 6 deletions
@@ -20,6 +20,8 @@
/datum/camerachunk/proc/add_camera(obj/machinery/camera/cam)
if(active_cameras[cam] || inactive_cameras[cam])
return
if(cam.non_chunking_camera)
return
// Register all even though it is active/inactive. Won't get called incorrectly
RegisterSignal(cam, COMSIG_CAMERA_OFF, PROC_REF(deactivate_camera), TRUE)
RegisterSignal(cam, COMSIG_CAMERA_ON, PROC_REF(activate_camera), TRUE)