From 8bcc67d11d94f7c1aead670d66498e3b6db6cfa4 Mon Sep 17 00:00:00 2001 From: Kyle Spier-Swenson Date: Fri, 8 Jul 2016 13:49:34 -0700 Subject: [PATCH] air tight plastic flaps now properly set atmos state. blocks_air is getting phased out, this is the last thing that uses it that isn't a closed turf In another pr when I have more time, i'll remove the var flat out. --- code/game/objects/structures/plasticflaps.dm | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/code/game/objects/structures/plasticflaps.dm b/code/game/objects/structures/plasticflaps.dm index 116f782e9da..f24a4b803b5 100644 --- a/code/game/objects/structures/plasticflaps.dm +++ b/code/game/objects/structures/plasticflaps.dm @@ -57,15 +57,11 @@ name = "airtight plastic flaps" desc = "Heavy duty, airtight, plastic flaps." -/obj/structure/plasticflaps/mining/New() //set the turf below the flaps to block air - var/turf/T = get_turf(loc) - if(T) - T.blocks_air = 1 - ..() +/obj/structure/plasticflaps/mining/New() + air_update_turf(1) + +/obj/structure/plasticflaps/mining/CanAtmosPass() + return FALSE -/obj/structure/plasticflaps/mining/Destroy() //lazy hack to set the turf to allow air to pass if it's a simulated floor //wow this is terrible - var/turf/T = get_turf(loc) - if(T) - if(istype(T, /turf/open/floor)) - T.blocks_air = 0 - return ..() +/obj/structure/plasticflaps/mining/Destroy() + air_update_turf(1)