works but leaks

This commit is contained in:
Putnam
2021-05-30 00:28:51 -07:00
parent 7a8d3148e0
commit 1c17570ea8
9 changed files with 26 additions and 8 deletions
+1
View File
@@ -193,6 +193,7 @@ GLOBAL_PROTECT(admin_verbs_debug)
// /client/proc/check_missing_sprites,
// #endif
/datum/admins/proc/create_or_modify_area,
/datum/admins/proc/fixcorruption,
#ifdef REFERENCE_TRACKING
/datum/admins/proc/view_refs,
/datum/admins/proc/view_del_failures,
@@ -35,11 +35,6 @@
update_air_ref(planetary_atmos ? 1 : 2)
. = ..()
/turf/open/proc/force_air_reset()
air = new(2500,src)
air.copy_from_turf(src)
update_air_ref(planetary_atmos ? 1 : 2)
/turf/open/Destroy()
if(active_hotspot)
QDEL_NULL(active_hotspot)
@@ -217,6 +217,8 @@
// air_contents.add_gas(gas_type)
if(starter_temp)
air_contents.set_temperature(starter_temp)
if(!air_contents.return_volume())
CRASH("Auxtools is failing somehow! Gas with pointer [air_contents._extools_pointer_gasmixture] is not valid.")
air_contents.set_moles(gas_type,(maximum_pressure * filled) * air_contents.return_volume() / (R_IDEAL_GAS_EQUATION * air_contents.return_temperature()))
/obj/machinery/portable_atmospherics/canister/air/create_gas()