mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Merge pull request #10335 from VOREStation/Arokha/dels
Various qdel helpers
This commit is contained in:
committed by
Chompstation Bot
parent
ad149bb509
commit
bc6564deb6
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user