mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-10 09:42:29 +00:00
[MIRROR] Save 0.1s in generate_station_area_list [MDB IGNORE] (#17294)
This commit is contained in:
@@ -433,12 +433,11 @@ Used by the AI doomsday and the self-destruct nuke.
|
||||
GLOBAL_LIST_EMPTY(the_station_areas)
|
||||
|
||||
/datum/controller/subsystem/mapping/proc/generate_station_area_list()
|
||||
for(var/area/station/A in world)
|
||||
if (!A.contents.len || !(A.area_flags & UNIQUE_AREA))
|
||||
for(var/area/station/station_area in world)
|
||||
if (!(station_area.area_flags & UNIQUE_AREA))
|
||||
continue
|
||||
var/turf/picked = A.contents[1]
|
||||
if (is_station_level(picked.z))
|
||||
GLOB.the_station_areas += A.type
|
||||
if (is_station_level(station_area.z))
|
||||
GLOB.the_station_areas += station_area.type
|
||||
|
||||
if(!GLOB.the_station_areas.len)
|
||||
log_world("ERROR: Station areas list failed to generate!")
|
||||
|
||||
Reference in New Issue
Block a user