mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-10 09:54:52 +00:00
[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
This commit is contained in:
committed by
Poojawa
parent
4259bad960
commit
0b07e1772a
@@ -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 <A HREF='?_src_=holder;[HrefToken()];toggle_midround_antag=[REF(usr)]'>stop the creation of antags</A> or <A HREF='?_src_=holder;[HrefToken()];end_round=[REF(usr)]'>end the round now</A>.")
|
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 <A HREF='?_src_=holder;[HrefToken()];toggle_midround_antag=[REF(usr)]'>stop the creation of antags</A> or <A HREF='?_src_=holder;[HrefToken()];end_round=[REF(usr)]'>end the round now</A>.")
|
||||||
log_game("Roundtype converted to [replacementmode.name]")
|
log_game("Roundtype converted to [replacementmode.name]")
|
||||||
|
|
||||||
. = 1
|
. = 1
|
||||||
|
|
||||||
sleep(rand(600,1800))
|
sleep(rand(600,1800))
|
||||||
@@ -425,7 +425,7 @@
|
|||||||
//Reports player logouts//
|
//Reports player logouts//
|
||||||
//////////////////////////
|
//////////////////////////
|
||||||
/proc/display_roundstart_logout_report()
|
/proc/display_roundstart_logout_report()
|
||||||
var/msg = "<span class='boldnotice'>Roundstart logout report\n\n</span>"
|
var/list/msg = list("<span class='boldnotice'>Roundstart logout report\n\n</span>")
|
||||||
for(var/i in GLOB.mob_living_list)
|
for(var/i in GLOB.mob_living_list)
|
||||||
var/mob/living/L = i
|
var/mob/living/L = i
|
||||||
var/mob/living/carbon/C = L
|
var/mob/living/carbon/C = L
|
||||||
@@ -462,7 +462,7 @@
|
|||||||
SSpersistence.antag_rep_change[p_ckey] = 0
|
SSpersistence.antag_rep_change[p_ckey] = 0
|
||||||
|
|
||||||
continue //Happy connected client
|
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(D.mind && D.mind.current == L)
|
||||||
if(L.stat == DEAD)
|
if(L.stat == DEAD)
|
||||||
if(L.suiciding) //Suicider
|
if(L.suiciding) //Suicider
|
||||||
@@ -480,7 +480,7 @@
|
|||||||
|
|
||||||
|
|
||||||
for (var/C in GLOB.admins)
|
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
|
//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)
|
/datum/game_mode/proc/age_check(client/C)
|
||||||
@@ -542,4 +542,4 @@
|
|||||||
if(EMERGENCY_ESCAPED_OR_ENDGAMED)
|
if(EMERGENCY_ESCAPED_OR_ENDGAMED)
|
||||||
SSticker.news_report = STATION_EVACUATED
|
SSticker.news_report = STATION_EVACUATED
|
||||||
if(SSshuttle.emergency.is_hijacked())
|
if(SSshuttle.emergency.is_hijacked())
|
||||||
SSticker.news_report = SHUTTLE_HIJACK
|
SSticker.news_report = SHUTTLE_HIJACK
|
||||||
Reference in New Issue
Block a user