Abstract New_Player Hard Del Fix (#22270)

Fixes a HardDel() related to players joining too quickly when entering
the server, and also just when latejoining in general (wtf)
This commit is contained in:
VMSolidus
2026-04-19 12:16:50 +00:00
committed by GitHub
parent b383b8799e
commit 08ee5c3f71
3 changed files with 6 additions and 2 deletions
@@ -12,7 +12,7 @@
GLOB.player_list |= src
client.playtitlemusic()
addtimer(CALLBACK(src, PROC_REF(show_lobby_info)), 5 SECONDS)
addtimer(CALLBACK(src, PROC_REF(show_lobby_info)), 5 SECONDS, TIMER_STOPPABLE | TIMER_DELETE_ME)
/mob/abstract/new_player/proc/show_lobby_info()
if(!client)
@@ -35,7 +35,7 @@ INITIALIZE_IMMEDIATE(/mob/abstract/new_player)
stack_trace("The map is supposedly loaded, but GLOB.lobby_mobs_location is not set, unable to move the lobby mob!")
return
addtimer(CALLBACK(src, PROC_REF(attempt_moving_new_player_on_marker_turf)), 5 SECONDS)
addtimer(CALLBACK(src, PROC_REF(attempt_moving_new_player_on_marker_turf)), 5 SECONDS, TIMER_STOPPABLE | TIMER_DELETE_ME)
/mob/abstract/new_player/Destroy()
QDEL_NULL(late_choices_ui)
@@ -0,0 +1,4 @@
author: Hellfirejag
delete-after: True
changes:
- bugfix: "Fixed a hard del caused by players joining a round too quickly after first connecting, or by latejoining."