mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
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:
@@ -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)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user