anchor.diff:  	else
   		assembly = new(src)
   		assembly.state = 4 //STATE_FINISHED
  -	assembly_ref = WEAKREF(assembly)
  +		assembly_ref = WEAKREF(assembly)
   	GLOB.cameranet.cameras += src
   	GLOB.cameranet.addCamera(src)
   	if (isturf(loc))
  
positive.code: #define CAMERA_UPGRADE_XRAY 1
  #define CAMERA_UPGRADE_EMP_PROOF 2
  #define CAMERA_UPGRADE_MOTION 4
  
  /obj/machinery/camera
  	name = "security camera"
  
negative.code: 	light_range = 10
  	start_active = TRUE
  
  /obj/machinery/camera/Initialize(mapload, obj/structure/camera_assembly/old_assembly)
  	. = ..()
  	for(var/i in network)
  		network -= i
  		network += lowertext(i)
  	var/obj/structure/camera_assembly/assembly
  	if(old_assembly) //check to see if the camera assembly was upgraded at all.
  		assembly = old_assembly
  		assembly_ref = WEAKREF(assembly) //important to do this now since upgrades call back to the assembly_ref
  		if(assembly.xray_module)
  			upgradeXRay()
  		else if(assembly.malf_xray_firmware_present) //if it was secretly upgraded via the MALF AI Upgrade Camera Network ability
  