Adds AfterInitialize() to the subsystem datums, it will be called once all Initialize() calls finish. Currently only atmos uses it to set up the turfs.

Before I had the luxury to initialize atmos last, by just ordering the calls, but now that they are on a list it's not viable
This commit is contained in:
Aranclanos
2015-06-11 03:48:32 -03:00
parent 6b83b0aa8f
commit 109aa5a715
3 changed files with 9 additions and 4 deletions
+2 -1
View File
@@ -60,7 +60,8 @@ calculate the longest number of ticks the MC can wait between each cycle without
for(var/datum/subsystem/S in subsystems)
S.Initialize(world.timeofday, zlevel)
sleep(-1)
for(var/datum/subsystem/S in subsystems)
S.AfterInitialize(zlevel)
world << "<span class='boldannounce'>Initializations complete</span>"
world.log << "Initializations complete"