Merge pull request #10335 from VOREStation/Arokha/dels

Various qdel helpers
This commit is contained in:
Aronai Sieyes
2021-05-20 15:04:37 -04:00
committed by Chompstation Bot
parent ad149bb509
commit bc6564deb6
8 changed files with 32 additions and 8 deletions

View File

@@ -42,6 +42,8 @@ var/obj/effect/lobby_image = new /obj/effect/lobby_image
sight |= SEE_TURFS
player_list |= src
created_for = ckey
new_player_panel()
spawn(40)
if(client)

View File

@@ -7,6 +7,10 @@
my_client = null
..()
if(created_for)
del_mannequin(created_for)
if(!spawning)//Here so that if they are spawning and log out, the other procs can play out and they will have a mob to come back to.
key = null//We null their key before deleting the mob, so they are properly kicked out.
qdel(src)

View File

@@ -17,6 +17,8 @@
anchored = 1 // don't get pushed around
var/created_for
/mob/new_player/New()
mob_list += src
initialized = TRUE // Explicitly don't use Initialize(). New players join super early and use New()