Various fixes and performance tweaks
This commit is contained in:
@@ -52,18 +52,20 @@
|
||||
LAZYINITLIST(T.atmos_adjacent_turfs)
|
||||
atmos_adjacent_turfs[T] = direction
|
||||
T.atmos_adjacent_turfs[src] = opp_dir
|
||||
T.__update_auxtools_turf_adjacency_info(isspaceturf(T.get_z_base_turf()))
|
||||
else
|
||||
if (atmos_adjacent_turfs)
|
||||
atmos_adjacent_turfs -= T
|
||||
if (T.atmos_adjacent_turfs)
|
||||
T.atmos_adjacent_turfs -= src
|
||||
T.__update_auxtools_turf_adjacency_info(isspaceturf(T.get_z_base_turf()))
|
||||
UNSETEMPTY(T.atmos_adjacent_turfs)
|
||||
T.__update_auxtools_turf_adjacency_info(isspaceturf(T.get_z_base_turf()), -1)
|
||||
UNSETEMPTY(atmos_adjacent_turfs)
|
||||
src.atmos_adjacent_turfs = atmos_adjacent_turfs
|
||||
set_sleeping(!(canpass || canvpass))
|
||||
__update_auxtools_turf_adjacency_info(isspaceturf(get_z_base_turf()))
|
||||
|
||||
/turf/proc/set_sleeping(should_sleep)
|
||||
|
||||
/turf/proc/__update_auxtools_turf_adjacency_info()
|
||||
|
||||
//returns a list of adjacent turfs that can share air with this one.
|
||||
|
||||
@@ -21,7 +21,7 @@ GLOBAL_LIST_INIT(meta_gas_fusions, meta_gas_fusion_list())
|
||||
var/initial_volume = CELL_VOLUME //liters
|
||||
var/list/reaction_results
|
||||
var/list/analyzer_results //used for analyzer feedback - not initialized until its used
|
||||
var/_extools_pointer_gasmixture = 0 // Contains the index in the gas vector for this gas mixture in rust land. Don't. Touch. This. Var.
|
||||
var/_extools_pointer_gasmixture // Contains the index in the gas vector for this gas mixture in rust land. Don't. Touch. This. Var.
|
||||
|
||||
GLOBAL_LIST_INIT(auxtools_atmos_initialized,FALSE)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user