Replaces Reamining Del()'s

This commit is contained in:
Fox-McCloud
2015-07-07 00:35:19 -04:00
parent 031143d7e7
commit 88dfaa51a4
24 changed files with 79 additions and 91 deletions
@@ -100,10 +100,10 @@
spawn(5)
eyeobj.loc = src.loc
/mob/living/silicon/ai/Del()
/mob/living/silicon/ai/Destroy()
eyeobj.ai = null
del(eyeobj) // No AI, no Eye
..()
qdel(eyeobj) // No AI, no Eye
return ..()
/atom/proc/move_camera_by_click()
if(istype(usr, /mob/living/silicon/ai))
@@ -23,10 +23,10 @@
// STRUCTURES
/obj/structure/Del()
/obj/structure/Destroy()
if(ticker)
cameranet.updateVisibility(src)
..()
return ..()
/obj/structure/New()
..()
@@ -35,10 +35,10 @@
// EFFECTS
/obj/effect/Del()
/obj/effect/Destroy()
if(ticker)
cameranet.updateVisibility(src)
..()
return ..()
/obj/effect/New()
..()
@@ -99,11 +99,11 @@
if(open_networks.len) //If there is at least one open network, chunk is available for AI usage.
cameranet.addCamera(src)
/obj/machinery/camera/Del()
/obj/machinery/camera/Destroy()
cameranet.cameras -= src
var/list/open_networks = difflist(network,restricted_camera_networks)
if(open_networks.len)
cameranet.removeCamera(src)
..()
return ..()
#undef BORG_CAMERA_BUFFER