Merge pull request #10736 from Citadel-Station-13/Ghommie-patch-3

An oversight with one of the new area helper procs.
This commit is contained in:
kevinz000
2020-01-28 17:55:39 -07:00
committed by GitHub
3 changed files with 4 additions and 2 deletions
+2
View File
@@ -227,6 +227,8 @@
/proc/get_sub_areas_contents(area/A, include_base = TRUE)
if(ispath(A))
A = GLOB.areas_by_type[A]
else
A = get_area(A) //in case it's called on other atoms.
if(!A)
return
if(A.base_area)
+1 -1
View File
@@ -198,7 +198,7 @@
return
else if(W.force) //hit and turn it on
..()
var/area/A = get_area(src)
var/area/A = get_base_area(src)
if(!A.fire)
alarm()
return
+1 -1
View File
@@ -231,7 +231,7 @@
if (!vr_area)
qdel(src)
return
var/list/contents = get_sub_areas_contents(src)
var/list/contents = get_sub_areas_contents(vr_area)
for (var/obj/item/ammo_casing/casing in contents)
qdel(casing)
for(var/obj/effect/decal/cleanable/C in contents)