SSair correctness improvments (#28057)

This commit is contained in:
Charlie Nolan
2025-01-21 20:09:14 -08:00
committed by GitHub
parent fda350cd1e
commit 28b41d925d
5 changed files with 35 additions and 43 deletions
@@ -129,9 +129,9 @@
if(direction == 0)
return
if(last_high_pressure_movement_time >= SSair.times_fired - 3)
if(last_high_pressure_movement_time >= SSair.milla_tick - 3)
return
last_high_pressure_movement_time = SSair.times_fired
last_high_pressure_movement_time = SSair.milla_tick
air_push(direction, (force - force_needed) / force_needed)
@@ -171,7 +171,7 @@
#define INDEX_SOUTH 3
#define INDEX_WEST 4
/turf/proc/Initialize_Atmos(times_fired)
/turf/proc/Initialize_Atmos(milla_tick)
// This is one of two places expected to call this otherwise-unsafe method.
var/list/connectivity = private_unsafe_recalculate_atmos_connectivity()
var/list/air = list(oxygen, carbon_dioxide, nitrogen, toxins, sleeping_agent, agent_b, temperature)
@@ -762,6 +762,7 @@ What are the archived variables for?
#undef QUANTIZE
/datum/gas_mixture/bound_to_turf
synchronized = FALSE
var/dirty = FALSE
var/lastread = 0
var/turf/bound_turf = null
@@ -32,11 +32,11 @@
if(!partner)
return 0
if(!SSair || SSair.times_fired <= update_cycle)
if(!SSair || SSair.milla_tick <= update_cycle)
return 0
update_cycle = SSair.times_fired
partner.update_cycle = SSair.times_fired
update_cycle = SSair.milla_tick
partner.update_cycle = SSair.milla_tick
var/air_heat_capacity = air_contents.heat_capacity()
var/other_air_heat_capacity = partner.air_contents.heat_capacity()