From 436ba24f10cc5dc3e9da58405f9659bf9f128caf Mon Sep 17 00:00:00 2001 From: Mark Suckerberg Date: Tue, 12 Mar 2024 20:09:00 -0500 Subject: [PATCH] Revert "trying something" This reverts commit a451a72bf8bde660db8fe72545596642895961a7. --- code/game/turfs/change_turf.dm | 3 ++- code/game/turfs/open/_open.dm | 9 +++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/code/game/turfs/change_turf.dm b/code/game/turfs/change_turf.dm index e40f6b1055c6..b7daf1547355 100644 --- a/code/game/turfs/change_turf.dm +++ b/code/game/turfs/change_turf.dm @@ -186,7 +186,8 @@ GLOBAL_LIST_INIT(blacklisted_automated_baseturfs, typecacheof(list( QDEL_NULL(turf_fire) if(ispath(path, /turf/open)) . = ..() - Initalize_Atmos(0) + if(!istype(air, /datum/gas_mixture)) + Initalize_Atmos(0) else update_air_ref(AIR_REF_CLOSED_TURF) . = ..() diff --git a/code/game/turfs/open/_open.dm b/code/game/turfs/open/_open.dm index 65444b6e1292..62b477ce1b06 100644 --- a/code/game/turfs/open/_open.dm +++ b/code/game/turfs/open/_open.dm @@ -158,10 +158,11 @@ baseturfs = /turf/open/indestructible/airblock /turf/open/Initalize_Atmos(times_fired) - if(!istype(air, /datum/gas_mixture/turf)) - air = new(2500, src) - air.copy_from_turf(src) - update_air_ref(planetary_atmos ? AIR_REF_PLANETARY_TURF : AIR_REF_OPEN_TURF) + if(!blocks_air) + if(!istype(air,/datum/gas_mixture/turf)) + air = new(2500, src) + air.copy_from_turf(src) + update_air_ref(planetary_atmos ? AIR_REF_PLANETARY_TURF : AIR_REF_OPEN_TURF) update_visuals()