Del The World: Unit testing for hard deletes (#59612)

Co-authored-by: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com>
This commit is contained in:
LemonInTheDark
2021-08-15 21:09:26 -07:00
committed by GitHub
co-authored by SteelSlayer
parent 0304206af3
commit cd576ab519
91 changed files with 788 additions and 168 deletions
+4 -1
View File
@@ -89,6 +89,9 @@
to_chat(src, span_notice("You cannot directly influence the world around you, but you can see what [owner] cannot."))
/mob/camera/imaginary_friend/Initialize(mapload, _trauma)
if(!_trauma)
stack_trace("Imaginary friend created without trauma, wtf")
return INITIALIZE_HINT_QDEL
. = ..()
trauma = _trauma
@@ -131,7 +134,7 @@
client.images |= current_image
/mob/camera/imaginary_friend/Destroy()
if(owner.client)
if(owner?.client)
owner.client.images.Remove(human_image)
if(client)
client.images.Remove(human_image)