mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-09 16:07:40 +00:00
wow i forgot some extremely important updates haha
This commit is contained in:
@@ -34,6 +34,8 @@
|
||||
/obj/machinery/door/firedoor/Initialize(mapload)
|
||||
. = ..()
|
||||
CalculateAffectingAreas()
|
||||
UpdateAdjacencyFlags()
|
||||
|
||||
|
||||
/obj/machinery/door/firedoor/examine(mob/user)
|
||||
. = ..()
|
||||
@@ -53,6 +55,20 @@
|
||||
var/area/A = I
|
||||
LAZYADD(A.firedoors, src)
|
||||
|
||||
/obj/machinery/door/firedoor/proc/UpdateAdjacencyFlags()
|
||||
var/turf/T = get_turf(src)
|
||||
if(flags_1 & ON_BORDER_1)
|
||||
for(var/t in T.atmos_adjacent_turfs)
|
||||
if(get_dir(loc, t) == dir)
|
||||
var/turf/open/T2 = t
|
||||
T.atmos_adjacent_turfs[T2] |= ATMOS_ADJACENT_FIRELOCK
|
||||
T2.atmos_adjacent_turfs[T] |= ATMOS_ADJACENT_FIRELOCK
|
||||
else
|
||||
for(var/t in T.atmos_adjacent_turfs)
|
||||
var/turf/open/T2 = t
|
||||
T.atmos_adjacent_turfs[T2] |= ATMOS_ADJACENT_FIRELOCK
|
||||
T2.atmos_adjacent_turfs[T] |= ATMOS_ADJACENT_FIRELOCK
|
||||
|
||||
/obj/machinery/door/firedoor/closed
|
||||
icon_state = "door_closed"
|
||||
opacity = TRUE
|
||||
|
||||
Reference in New Issue
Block a user