actually makes new players fully GC (#20525)

This commit is contained in:
GDN
2023-03-05 09:56:37 -06:00
committed by GitHub
parent 2805bb1d61
commit 94fc3f0154
2 changed files with 5 additions and 2 deletions
+5 -1
View File
@@ -18,6 +18,11 @@
GLOB.mob_list += src
return INITIALIZE_HINT_NORMAL
/mob/new_player/Destroy()
if(mind)
mind.current = null // We best null their mind as well, otherwise /every/ single new player is going to explode the server a little more going in/out of the round
return ..()
/mob/new_player/verb/new_player_panel()
set src = usr
@@ -198,7 +203,6 @@
observer.name = observer.real_name
observer.key = key
observer.add_to_respawnable_list()
mind.current = null
qdel(src)
return TRUE
return FALSE
@@ -2,7 +2,6 @@
ready = FALSE
..()
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.
mind.current = null // We best null their mind as well, otherwise /every/ single new player is going to explode the server a little more by logging out
key = null//We null their key before deleting the mob, so they are properly kicked out.
qdel(src)
return