mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-01 12:31:32 +00:00
* Fixing an old ghastly reference issue. (#54820) * PR about an old ghastly ref issue. Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com>
22 lines
605 B
Plaintext
22 lines
605 B
Plaintext
/mob/Logout()
|
|
SEND_SIGNAL(src, COMSIG_MOB_LOGOUT)
|
|
log_message("[key_name(src)] is no longer owning mob [src]([src.type])", LOG_OWNERSHIP)
|
|
SStgui.on_logout(src)
|
|
unset_machine()
|
|
remove_from_player_list()
|
|
if(client?.movingmob) //In the case the client was transferred to another mob and not deleted.
|
|
client.movingmob.client_mobs_in_contents -= src
|
|
UNSETEMPTY(client.movingmob.client_mobs_in_contents)
|
|
client.movingmob = null
|
|
..()
|
|
|
|
if(loc)
|
|
loc.on_log(FALSE)
|
|
|
|
if(client)
|
|
for(var/foo in client.player_details.post_logout_callbacks)
|
|
var/datum/callback/CB = foo
|
|
CB.Invoke()
|
|
|
|
return TRUE
|