Skip to content

Commit

Permalink
Fixes runtimes in gas_mixture/proc/equalize (tgstation#75420)
Browse files Browse the repository at this point in the history
## About The Pull Request


![image](https://github.com/tgstation/tgstation/assets/58055496/f124ccc1-9e8d-4701-b9cf-9635e1a1f1b2)

Basically, a gasmix's temp starts out at 0, and untouched the spacemix
is not updated until something shares with it.
Even if this doesn't for sure fix it, this is v dumb and worth doing
regardless

## Why It's Good For The Game


![image](https://github.com/tgstation/tgstation/assets/58055496/be8999ab-3da9-4e1d-93e3-88732faf2a8c)
Should close tgstation#75260, it's 4am I'm not gonna test this rn

---------

Co-authored-by: ZephyrTFA <matthew@tfaluc.com>
Co-authored-by: Zephyr <12817816+ZephyrTFA@users.noreply.github.com>
  • Loading branch information
3 people authored and Absolucy committed May 31, 2024
1 parent c3b5aa6 commit 7ae6d3a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions code/modules/atmospherics/gasmixtures/gas_mixture.dm
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,14 @@ GLOBAL_LIST_INIT(gaslist_cache, init_gaslist_cache())

/datum/gas_mixture
var/list/gases
var/temperature = 0 //kelvins
var/tmp/temperature_archived = 0
var/volume = CELL_VOLUME //liters
/// The temperature of the gas mix in kelvin. Should never be lower then TCMB
var/temperature = TCMB
/// Used, like all archived variables, to ensure turf sharing is consistent inside a tick, no matter
/// The order of operations
var/tmp/temperature_archived = TCMB
/// Volume in liters (duh)
var/volume = CELL_VOLUME
/// The last tick this gas mixture shared on. A counter that turfs use to manage activity
var/last_share = 0
/// Tells us what reactions have happened in our gasmix. Assoc list of reaction - moles reacted pair.
var/list/reaction_results
Expand Down

0 comments on commit 7ae6d3a

Please sign in to comment.