Revert "[MIRROR] /atom New() => Initialize() [MDB IGNORE]"

This commit is contained in:
Novacat
2022-08-27 08:49:56 -04:00
committed by GitHub
parent 0be7af4774
commit 1aa4c73e8d
599 changed files with 3329 additions and 4983 deletions
+4 -2
View File
@@ -16,6 +16,7 @@
return 1
/* Uncomment when all atoms init properly
/datum/unit_test/subsystem_atom_shall_have_no_bad_init_calls
name = "SUBSYSTEM - ATOMS: Shall have no bad init calls"
@@ -34,11 +35,12 @@
set background = TRUE // avoid infinite loop warning; SS will still wait for us.
var/fail = FALSE
for(var/atom/atom in world)
if(!atom.initialized && !QDELETED(atom)) // Not ideal to skip over qdeleted atoms, but a lot of current code uses pre-init qdels
log_bad("Uninitialized atom: [atom.type] - [atom.log_info_line()]")
if(!(atom.initialized))
log_bad("Uninitialized atom: [atom.log_info_line()]")
fail = TRUE
if(fail)
fail("There were uninitialized atoms.")
else
pass("All atoms were initialized")
return 1
*/