From 28547e6b6b59d8fdcb71b388caf17e8366ec3294 Mon Sep 17 00:00:00 2001 From: Cyberboss Date: Wed, 22 Mar 2017 10:27:17 -0400 Subject: [PATCH] Fix new qdeletion spam (#25344) --- code/controllers/subsystem/atoms.dm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/code/controllers/subsystem/atoms.dm b/code/controllers/subsystem/atoms.dm index 7fe32d7fe88..f765956fc8e 100644 --- a/code/controllers/subsystem/atoms.dm +++ b/code/controllers/subsystem/atoms.dm @@ -30,12 +30,16 @@ var/datum/controller/subsystem/atoms/SSatoms initialized = INITIALIZATION_INNEW_MAPLOAD + var/static/list/NewQdelList = list() + if(atoms) for(var/I in atoms) var/atom/A = I if(!A.initialized) //this check is to make sure we don't call it twice on an object that was created in a previous Initialize call if(QDELETED(A)) - stack_trace("Found new qdeletion in type [A.type]!") + if(!(NewQdelList[A.type])) + WARNING("Found new qdeletion in type [A.type]!") + NewQdelList[A.type] = TRUE continue var/start_tick = world.time if(A.Initialize(TRUE)) @@ -51,7 +55,9 @@ var/datum/controller/subsystem/atoms/SSatoms for(var/atom/A in world) if(!A.initialized) //this check is to make sure we don't call it twice on an object that was created in a previous Initialize call if(QDELETED(A)) - stack_trace("Found new qdeletion in type [A.type]!") + if(!(NewQdelList[A.type])) + WARNING("Found new qdeletion in type [A.type]!") + NewQdelList[A.type] = TRUE continue var/start_tick = world.time if(A.Initialize(TRUE))