fixes some stuff, note that the infinite loop is still present but only mitigated

This commit is contained in:
Matt Atlas
2022-02-27 20:00:57 +01:00
parent 184609631b
commit b782b15c92
5 changed files with 431 additions and 66609 deletions
+3 -1
View File
@@ -103,13 +103,15 @@
machines += A
if(istype(A,/obj/effect/landmark/map_load_mark))
LAZYADD(subtemplates_to_spawn, A)
if(A.initialized)
atoms -= A
var/notsuspended
if(!SSmachinery.suspended)
SSmachinery.suspend()
notsuspended = TRUE
SSatoms.InitializeAtoms() // The atoms should have been getting queued there. This flushes the queue.
SSatoms.InitializeAtoms(atoms) // The atoms should have been getting queued there. This flushes the queue.
SSmachinery.setup_template_powernets(cables)
SSmachinery.setup_atmos_machinery(atmos_machines)