diff --git a/code/__HELPERS/unsorted.dm b/code/__HELPERS/unsorted.dm index 755ad12b35c..e4c14cdf2d7 100644 --- a/code/__HELPERS/unsorted.dm +++ b/code/__HELPERS/unsorted.dm @@ -674,9 +674,10 @@ Turf and target are seperate in case you want to teleport some distance from a t if(A.vars.Find(lowertext(varname))) return 1 else return 0 -//Returns sortedAreas list if populated -//else populates the list first before returning it +//Repopulates sortedAreas list /proc/SortAreas() + sortedAreas = list() + for(var/area/A in world) sortedAreas.Add(A) diff --git a/code/modules/awaymissions/zlevel.dm b/code/modules/awaymissions/zlevel.dm index 4219bafe595..eb284af8c41 100644 --- a/code/modules/awaymissions/zlevel.dm +++ b/code/modules/awaymissions/zlevel.dm @@ -34,6 +34,7 @@ var/global/list/potentialSpaceRuins = generateMapList(filename = "config/spaceRu world << "Away mission loaded." + SortAreas() //To add recently loaded areas else world << "No away missions found." return