more things

This commit is contained in:
Fox-McCloud
2017-04-03 19:44:04 -04:00
parent fb02933f30
commit 21b1c091ad
2 changed files with 13 additions and 4 deletions
+7 -4
View File
@@ -52,17 +52,20 @@
/obj/machinery/camera/Destroy()
toggle_cam(null, 0) //kick anyone viewing out
if(assembly)
qdel(assembly)
assembly = null
QDEL_NULL(assembly)
if(istype(bug))
bug.bugged_cameras -= src.c_tag
if(bug.current == src)
bug.current = null
bug = null
qdel(wires)
wires = null
if(wires)
QDEL_NULL(wires)
cameranet.removeCamera(src) //Will handle removal from the camera network and the chunks, so we don't need to worry about that
cameranet.cameras -= src
var/area/ai_monitored/A = get_area(src)
if(istype(A))
A.motioncamera = null
area_motion = null
return ..()
/obj/machinery/camera/emp_act(severity)
@@ -20,6 +20,12 @@
4 = Screwdriver panel closed and is fully built (you cannot attach upgrades)
*/
/obj/item/weapon/camera_assembly/Destroy()
for(var/thing in upgrades)
qdel(thing)
upgrades.Cut()
return ..()
/obj/item/weapon/camera_assembly/attackby(obj/item/W, mob/living/user, params)
switch(state)