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 c81f9de1ac
commit 2c13bee848
15 changed files with 20 additions and 23 deletions

View File

@@ -346,7 +346,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