Fixes areastring grabbing area subtypes
This commit is contained in:
14
code/modules/power/apc.dm.rej
Normal file
14
code/modules/power/apc.dm.rej
Normal 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]")
|
||||
Reference in New Issue
Block a user