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

@@ -22,12 +22,12 @@
Please stand by while the gravity system reinitializes.", "Gravity Failure")
/datum/event2/event/gravity/start()
for(var/area/A in all_areas)
for(var/area/A in world)
if(A.z in get_location_z_levels())
A.gravitychange(FALSE)
/datum/event2/event/gravity/end()
for(var/area/A in all_areas)
for(var/area/A in world)
if(A.z in get_location_z_levels())
A.gravitychange(TRUE)

View File

@@ -177,7 +177,7 @@
/datum/event2/event/prison_break/set_up()
for(var/area/A in all_areas)
for(var/area/A in world)
if(is_type_in_list(A, area_types_to_break) && !is_type_in_list(A, area_types_to_ignore))
areas_to_break += A