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

@@ -352,7 +352,7 @@ var/global/use_preloader = FALSE
var/atom/instance
_preloader.setup(members_attributes[index])//preloader for assigning set variables on atom creation
var/atype = members[index]
for(var/area/A in all_areas)
for(var/area/A in world)
if(A.type == atype)
instance = A
break