mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-28 07:39:13 +01:00
Memory tracking shenanigans (#8359)
This commit is contained in:
@@ -39,14 +39,14 @@ SUBSYSTEM_DEF(atoms)
|
||||
created_atoms = list()
|
||||
count = atoms.len
|
||||
for(var/atom/A as anything in atoms)
|
||||
if(!A.initialized)
|
||||
if(!(A.flags & ATOM_INITIALIZED)) //CHOMPEdit
|
||||
if(InitAtom(A, mapload_arg))
|
||||
atoms -= A
|
||||
CHECK_TICK
|
||||
else
|
||||
count = 0
|
||||
for(var/atom/A in world) // This must be world, since this operation adds all the atoms to their specific lists.
|
||||
if(!A.initialized)
|
||||
if(!(A.flags & ATOM_INITIALIZED))
|
||||
InitAtom(A, mapload_arg)
|
||||
++count
|
||||
CHECK_TICK
|
||||
@@ -97,7 +97,7 @@ SUBSYSTEM_DEF(atoms)
|
||||
|
||||
if(!A) //possible harddel
|
||||
qdeleted = TRUE
|
||||
else if(!A.initialized)
|
||||
else if(!(A.flags & ATOM_INITIALIZED))
|
||||
BadInitializeCalls[the_type] |= BAD_INIT_DIDNT_INIT
|
||||
|
||||
return qdeleted || QDELING(A)
|
||||
|
||||
@@ -34,8 +34,8 @@ SUBSYSTEM_DEF(xenoarch)
|
||||
if(!M.density)
|
||||
continue
|
||||
|
||||
if(isnull(M.geologic_data))
|
||||
M.geologic_data = new /datum/geosample(M)
|
||||
/*if(isnull(M.geologic_data)) CHOMP Removal. Initialized when needed now.
|
||||
M.geologic_data = new /datum/geosample(M)*/
|
||||
|
||||
if((M.z in using_map.xenoarch_exempt_levels) || !prob(XENOARCH_SPAWN_CHANCE))
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user