This commit is contained in:
Katherine Kiefer
2022-06-22 20:43:06 +10:00
parent d8efbcd4d6
commit 54b8f13c81
4 changed files with 7 additions and 6 deletions

Binary file not shown.

Binary file not shown.

View File

@@ -33,8 +33,8 @@
var/list/turfs = block( locate(bounds[MAP_MINX], bounds[MAP_MINY], bounds[MAP_MINZ]),
locate(bounds[MAP_MAXX], bounds[MAP_MAXY], bounds[MAP_MAXZ]))
var/list/border = block(locate(max(bounds[MAP_MINX]-1, 1), max(bounds[MAP_MINY]-1, 1), bounds[MAP_MINZ]),
locate(min(bounds[MAP_MAXX]+1, world.maxx), min(bounds[MAP_MAXY]+1, world.maxy), bounds[MAP_MAXZ])) - turfs
var/list/border = block(locate(max(bounds[MAP_MINX]-2, 1), max(bounds[MAP_MINY]-2, 1), bounds[MAP_MINZ]),
locate(min(bounds[MAP_MAXX]+2, world.maxx), min(bounds[MAP_MAXY]+2, world.maxy), bounds[MAP_MAXZ]))
for(var/L in turfs)
var/turf/B = L
atoms += B
@@ -46,9 +46,9 @@
continue
if(istype(A, /obj/machinery/atmospherics))
atmos_machines += A
for(var/L in border)
var/turf/T = L
T.air_update_turf() //calculate adjacent turfs along the border to prevent runtimes
for(var/turf/T as anything in border)
T.blocks_air = initial(T.blocks_air)
T.ImmediateCalculateAdjacentTurfs()
SSmapping.reg_in_areas_in_z(areas)
SSatoms.InitializeAtoms(atoms)

View File

@@ -71,7 +71,8 @@
var/datum/gas_mixture/env = new
env.copy_from(L.return_air())
var/datum/gas_mixture/removed = env.remove(SEND_PRESSURE + 1)
air_contents.merge(removed)
if(removed)
air_contents.merge(removed)
trunk_check()
/obj/machinery/disposal/attackby(obj/item/I, mob/user, params)