mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
[MIRROR] fix a bunch of runtimes (#10683)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
93dbe948bc
commit
b672ca8693
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user