mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 20:48:56 +01:00
Fix new qdeletion spam (#25344)
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user