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
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user