From 4a3324b673c493b7af82b9db32a6668bba84f3cc Mon Sep 17 00:00:00 2001 From: AnturK Date: Sun, 3 Jan 2016 20:25:48 +0100 Subject: [PATCH] Adds away areas to ghost teleport/ admin jump list --- code/__HELPERS/unsorted.dm | 5 +++-- code/modules/awaymissions/zlevel.dm | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/code/__HELPERS/unsorted.dm b/code/__HELPERS/unsorted.dm index 76623d41e30..c084a54bf02 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