Replaces cached get_area vars for names (#34338)

This commit is contained in:
ShizCalev
2018-01-13 20:56:11 -06:00
committed by CitadelStationBot
parent 3a2ac4d102
commit 80095fea0a
21 changed files with 29 additions and 53 deletions
+3 -1
View File
@@ -14,8 +14,10 @@
var/turf/T = get_turf(A)
return T ? T.loc : null
/proc/get_area_name(atom/X)
/proc/get_area_name(atom/X, format_text = FALSE)
var/area/Y = get_area(X)
if(format_text)
return format_text(Y.name)
return Y.name
/proc/get_area_by_name(N) //get area by its name