Update holocall.dm

This commit is contained in:
LetterJay
2017-06-06 13:05:38 -05:00
committed by GitHub
parent 98e2a659f4
commit 8273877b23
+13 -7
View File
@@ -1,4 +1,3 @@
#define HOLOPAD_MAX_DIAL_TIME 200
/mob/camera/aiEye/remote/holo/setLoc()
@@ -44,15 +43,22 @@
//cleans up ALL references :)
/datum/holocall/Destroy()
if(!QDELETED(user))
QDEL_NULL(hangup)
var/user_good = !QDELETED(user)
if(user_good)
user.reset_perspective()
if(user.client)
user.remote_control = null
if(!QDELETED(eye))
if(user_good && user.client)
for(var/datum/camerachunk/chunk in eye.visibleCameraChunks)
chunk.remove(eye)
user.remote_control = null
user = null
QDEL_NULL(eye)
qdel(eye)
eye = null
user = null
if(hologram)
hologram.HC = null
hologram = null