Merge pull request #19219 from MrStonedOne/patch-227

air tight plastic flaps now properly set atmos state.
This commit is contained in:
Cheridan
2016-07-13 14:33:38 -05:00
committed by GitHub
+11 -11
View File
@@ -57,15 +57,15 @@
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()
var/atom/oldloc = loc
. = ..()
if (oldloc)
oldloc.air_update_turf(1)