Fixes areastring grabbing area subtypes

This commit is contained in:
CitadelStationBot
2017-08-06 03:21:24 -05:00
parent 521c149627
commit a209582b8a
3 changed files with 40 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
diff a/code/modules/power/apc.dm b/code/modules/power/apc.dm (rejected hunks)
@@ -178,11 +178,7 @@
//if area isn't specified use current
if(areastring)
- areastring = text2path(areastring) //resolves the string to path, then filters out instances generated by subtypes of the path in sortedAreas
- for(var/V in GLOB.sortedAreas)
- var/area/B = V
- if(B.type == areastring)
- src.area = V
+ src.area = get_area_instance_from_text(areastring)
if(!src.area)
src.area = A
stack_trace("Bad areastring path for [src], [src.areastring]")