Add 'as anything' to various for loops

This commit is contained in:
Aronai Sieyes
2021-07-20 12:39:59 -04:00
parent bb3b3d6214
commit 34982728cb
221 changed files with 483 additions and 914 deletions
+2 -4
View File
@@ -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)