[MIRROR] fix a bunch of runtimes (#10683)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-04-20 20:58:25 -07:00
committed by GitHub
parent 93dbe948bc
commit b672ca8693
7 changed files with 27 additions and 9 deletions

View File

@@ -15,7 +15,7 @@
// Handle people leaving due to round ending.
/hook/roundend/proc/persist_locations()
for(var/mob/Player in human_mob_list)
for(var/mob/living/carbon/human/Player in human_mob_list)
if(!Player.mind || isnewplayer(Player))
continue // No mind we can do nothing, new players we care not for
else if(Player.stat == DEAD)
@@ -27,6 +27,9 @@
persist_interround_data(Player, using_map.spawnpoint_died)
else
var/turf/playerTurf = get_turf(Player)
if(!playerTurf)
log_debug("Player [Player.name] ([Player.ckey]) playing as [Player.species] was in nullspace at round end.")
continue
if(isAdminLevel(playerTurf.z))
// Evac'd - Next round they arrive on the shuttle.
persist_interround_data(Player, using_map.spawnpoint_left)