Skip to content

Commit

Permalink
Better way
Browse files Browse the repository at this point in the history
  • Loading branch information
AyIong committed Apr 11, 2024
1 parent 6a0dcce commit 095ae99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion code/__HELPERS/unsorted.dm
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ Returns 1 if the chain up to the area contains the given typepath
areatype = areatemp.type

var/list/turfs = list()
for(var/area/N as anything in world)
for(var/area/N as anything in GLOB.all_areas)
if(istype(N, areatype))
for(var/turf/T in N)
turfs += T
Expand Down
4 changes: 2 additions & 2 deletions code/game/area/areas.dm
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,13 @@
/area/New(loc, ...)
if(!there_can_be_many) // Has to be done in New else the maploader will fuck up and find subtypes for the parent
GLOB.all_unique_areas[type] = src
..()
GLOB.all_areas += src
return ..()

/area/Initialize(mapload)
if(is_station_level(z))
RegisterSignal(SSsecurity_level, COMSIG_SECURITY_LEVEL_CHANGED, PROC_REF(on_security_level_update))

GLOB.all_areas += src
icon_state = ""
layer = AREA_LAYER
uid = ++global_uid
Expand Down

0 comments on commit 095ae99

Please sign in to comment.