Fixes area power initialization

Power channels start on when objects initialize, then are turned off and area machines notified in area initialization if an apc is not found.
This commit is contained in:
mwerezak
2015-08-09 09:48:55 -04:00
parent 31b8335298
commit 12549b7e93
2 changed files with 13 additions and 9 deletions

View File

@@ -88,17 +88,22 @@ datum/controller/game_controller/proc/setup()
datum/controller/game_controller/proc/setup_objects()
world << "\red \b Initializing objects"
world << "<span class='danger>Initializing objects</span>"
sleep(-1)
for(var/atom/movable/object in world)
object.initialize()
world << "<span class='danger>Initializing areas</span>"
sleep(-1)
for(var/area/area in all_areas)
area.initialize()
world << "\red \b Initializing pipe networks"
world << "<span class='danger>Initializing pipe networks</span>"
sleep(-1)
for(var/obj/machinery/atmospherics/machine in machines)
machine.build_network()
world << "\red \b Initializing atmos machinery."
world << "<span class='danger>Initializing atmos machinery.</span>"
sleep(-1)
for(var/obj/machinery/atmospherics/unary/U in machines)
if(istype(U, /obj/machinery/atmospherics/unary/vent_pump))