mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
Fixes #4027
Only areas connected to a firedoor by a floor will be recongized as an area in which the firedoor exists. i.e. A firedoor connected to a wall of another area will not trigger that firedoor
This commit is contained in:
@@ -124,10 +124,12 @@ var/global/list/alert_overlays_global = list()
|
||||
areas_added = list(A)
|
||||
|
||||
for(var/direction in cardinal)
|
||||
A = get_area(get_step(src,direction))
|
||||
if(istype(A) && !(A in areas_added))
|
||||
A.all_doors.Add(src)
|
||||
areas_added += A
|
||||
var/turf/T = get_step(src,direction)
|
||||
if(istype(T,/turf/simulated/floor))
|
||||
A = get_area(get_step(src,direction))
|
||||
if(A)
|
||||
A.all_doors |= src
|
||||
areas_added |= A
|
||||
|
||||
|
||||
/obj/machinery/door/firedoor/Destroy()
|
||||
|
||||
Reference in New Issue
Block a user