Skip to content

Commit

Permalink
Revert "trying something"
Browse files Browse the repository at this point in the history
This reverts commit a451a72.
  • Loading branch information
MarkSuckerberg committed Mar 13, 2024
1 parent 3447838 commit 436ba24
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion code/game/turfs/change_turf.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
. = ..()
Expand Down
9 changes: 5 additions & 4 deletions code/game/turfs/open/_open.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 436ba24

Please sign in to comment.