mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Optimize a couple things
This commit is contained in:
@@ -49,8 +49,7 @@
|
||||
var/list/obj/machinery/atmospherics/atmos_machines = list()
|
||||
var/list/turf/turfs = block(locate(bounds[MAP_MINX], bounds[MAP_MINY], bounds[MAP_MINZ]),
|
||||
locate(bounds[MAP_MAXX], bounds[MAP_MAXY], bounds[MAP_MAXZ]))
|
||||
for(var/L in turfs)
|
||||
var/turf/B = L
|
||||
for(var/turf/B as anything in turfs)
|
||||
atoms += B
|
||||
areas |= B.loc
|
||||
for(var/A in B)
|
||||
@@ -71,8 +70,7 @@
|
||||
SSmachines.setup_powernets_for_cables(cables)
|
||||
|
||||
// Ensure all machines in loaded areas get notified of power status
|
||||
for(var/I in areas)
|
||||
var/area/A = I
|
||||
for(var/area/A as anything in areas)
|
||||
A.power_change()
|
||||
|
||||
if(machinery_was_awake)
|
||||
|
||||
Reference in New Issue
Block a user