From 98ecc34a47ddfd5003b03e7e104a4b311c18d43e Mon Sep 17 00:00:00 2001 From: QuoteFox <49098813+quotefox@users.noreply.github.com> Date: Fri, 23 Apr 2021 18:36:32 +0100 Subject: [PATCH] airlocks rotate with windows too. --- code/game/machinery/doors/airlock.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/game/machinery/doors/airlock.dm b/code/game/machinery/doors/airlock.dm index f483d4b0..de879025 100644 --- a/code/game/machinery/doors/airlock.dm +++ b/code/game/machinery/doors/airlock.dm @@ -164,10 +164,14 @@ var/turf/T = get_step(src, NORTH) //get the tile NORTH if(istype(T, /turf/closed)) //its a wall dir = 4 + if(istype(T, /obj/structure/window)) //its a window + dir = 4 var/turf/S = get_step(src, SOUTH) //get the tile NORTH if(istype(S, /turf/closed)) //its a wall dir = 4 + if(istype(S, /obj/structure/window)) //its a window + dir = 4 /obj/machinery/door/airlock/ComponentInitialize()