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.
This commit is contained in:
Kyle Spier-Swenson
2016-07-12 22:47:21 -07:00
committed by MrStonedOne
parent 523a2b29fe
commit 8bcc67d11d
+7 -11
View File
@@ -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)