From 0b07e1772ae9a3d3934ed82cf32a733afe47fca8 Mon Sep 17 00:00:00 2001 From: CitadelStationBot Date: Sun, 4 Mar 2018 12:27:06 -0600 Subject: [PATCH] [MIRROR] Fix N^2 behavior in roundstart logout report (#5708) * Fix N^2 behavior in roundstart logout report (#35862) * Fix N^2 behavior in roundstart logout report * Skip mobs which have never had a mind * Fix N^2 behavior in roundstart logout report * wew --- code/game/gamemodes/game_mode.dm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/code/game/gamemodes/game_mode.dm b/code/game/gamemodes/game_mode.dm index 7f88163509..8738ac96a9 100644 --- a/code/game/gamemodes/game_mode.dm +++ b/code/game/gamemodes/game_mode.dm @@ -165,7 +165,7 @@ message_admins("The roundtype will be converted. If you have other plans for the station or feel the station is too messed up to inhabit stop the creation of antags or end the round now.") log_game("Roundtype converted to [replacementmode.name]") - + . = 1 sleep(rand(600,1800)) @@ -425,7 +425,7 @@ //Reports player logouts// ////////////////////////// /proc/display_roundstart_logout_report() - var/msg = "Roundstart logout report\n\n" + var/list/msg = list("Roundstart logout report\n\n") for(var/i in GLOB.mob_living_list) var/mob/living/L = i var/mob/living/carbon/C = L @@ -462,7 +462,7 @@ SSpersistence.antag_rep_change[p_ckey] = 0 continue //Happy connected client - for(var/mob/dead/observer/D in GLOB.mob_list) + for(var/mob/dead/observer/D in GLOB.dead_mob_list) if(D.mind && D.mind.current == L) if(L.stat == DEAD) if(L.suiciding) //Suicider @@ -480,7 +480,7 @@ for (var/C in GLOB.admins) - to_chat(C, msg) + to_chat(C, msg.Join()) //If the configuration option is set to require players to be logged as old enough to play certain jobs, then this proc checks that they are, otherwise it just returns 1 /datum/game_mode/proc/age_check(client/C) @@ -542,4 +542,4 @@ if(EMERGENCY_ESCAPED_OR_ENDGAMED) SSticker.news_report = STATION_EVACUATED if(SSshuttle.emergency.is_hijacked()) - SSticker.news_report = SHUTTLE_HIJACK + SSticker.news_report = SHUTTLE_HIJACK \ No newline at end of file