Replace global all_areas list with world.

It ends up having similar performance, so might as well not bother with all_areas.
This commit is contained in:
Leshana
2020-04-05 18:01:29 -04:00
parent 859036b7cd
commit 262faa38e4
17 changed files with 23 additions and 26 deletions

View File

@@ -676,7 +676,7 @@ proc/GaussRandRound(var/sigma,var/roundto)
//Returns: all the areas in the world
/proc/return_areas()
var/list/area/areas = list()
for(var/area/A in all_areas)
for(var/area/A in world)
areas += A
return areas
@@ -694,7 +694,7 @@ proc/GaussRandRound(var/sigma,var/roundto)
areatype = areatemp.type
var/list/areas = new/list()
for(var/area/N in all_areas)
for(var/area/N in world)
if(istype(N, areatype)) areas += N
return areas
@@ -708,7 +708,7 @@ proc/GaussRandRound(var/sigma,var/roundto)
areatype = areatemp.type
var/list/turfs = new/list()
for(var/area/N in all_areas)
for(var/area/N in world)
if(istype(N, areatype))
for(var/turf/T in N) turfs += T
return turfs
@@ -723,7 +723,7 @@ proc/GaussRandRound(var/sigma,var/roundto)
areatype = areatemp.type
var/list/atoms = new/list()
for(var/area/N in all_areas)
for(var/area/N in world)
if(istype(N, areatype))
for(var/atom/A in N)
atoms += A