Remove qdel from ghost images, clarify qdel debug, nanoUI runtime fix

This commit is contained in:
Markolie
2015-03-04 15:09:12 +01:00
parent 691fef1ff0
commit 6352d2abd9
6 changed files with 15 additions and 11 deletions
+1 -1
View File
@@ -89,7 +89,7 @@ var/list/image/ghost_darkness_images = list() //this is a list of images for thi
/mob/dead/observer/Destroy()
if (ghostimage)
ghost_darkness_images -= ghostimage
qdel(ghostimage)
del(ghostimage)
ghostimage = null
updateallghostimages()
..()
@@ -26,7 +26,7 @@
/mob/aiEye/Destroy()
if (ghostimage)
ghost_darkness_images -= ghostimage
qdel(ghostimage)
del(ghostimage)
ghostimage = null;
updateallghostimages()
+1 -1
View File
@@ -220,7 +220,7 @@
*/
/datum/nanomanager/proc/user_transferred(var/mob/oldMob, var/mob/newMob)
//testing("nanomanager/user_transferred from mob [oldMob.name] to mob [newMob.name]")
if (isnull(oldMob.open_uis) || !istype(oldMob.open_uis, /list) || open_uis.len == 0)
if (!oldMob || isnull(oldMob.open_uis) || !istype(oldMob.open_uis, /list) || open_uis.len == 0)
//testing("nanomanager/user_transferred mob [oldMob.name] has no open uis")
return 0 // has no open uis