Silicon Deletion Sanity (#7800)

This commit is contained in:
Matt Atlas
2019-12-29 23:01:32 +01:00
committed by Werner
parent ca3c6c5828
commit 2e01b48fd8
4 changed files with 51 additions and 28 deletions
+1 -6
View File
@@ -44,8 +44,7 @@
if(!eyeobj) return
if(!new_eye)
new_eye = src
qdel(eyeobj) // No AI, no Eye
eyeobj = null
QDEL_NULL(eyeobj)
if(client)
client.eye = new_eye
@@ -60,10 +59,6 @@
. = ..()
create_eyeobj()
/mob/living/silicon/ai/Destroy()
destroy_eyeobj()
. = ..()
/atom/proc/move_camera_by_click()
if(istype(usr, /mob/living/silicon/ai))
var/mob/living/silicon/ai/AI = usr