]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Use archived gas mixture in gas exchange comparison (#32088)
authordrakewill-CRL <46307022+drakewill-CRL@users.noreply.github.com>
Mon, 30 Sep 2024 05:14:07 +0000 (01:14 -0400)
committerGitHub <noreply@github.com>
Mon, 30 Sep 2024 05:14:07 +0000 (22:14 -0700)
commit7cf04dcb201e1a615e4a175ff929cca9554134d2
tree84ef916346c2433081099b642c0a6714d3a1356e
parentdd15a6862c6ea15f15a77b30d885a9319870676c
Use archived gas mixture in gas exchange comparison (#32088)

The comparison for doing gas exchange used current and not archived
moles. This could lead to update order-dependent gas spreading effects.

To fix this, convert TileAtmosphere's MolesArchived and
TemperatureArchived to a AirArchived, and use that in the comparison
method.

---------

Co-authored-by: PraxisMapper <praxismapper@gmail.com>
Co-authored-by: Kevin Zheng <kevinz5000@gmail.com>
Content.Server/Atmos/EntitySystems/AtmosphereSystem.Gases.cs
Content.Server/Atmos/EntitySystems/AtmosphereSystem.GridAtmosphere.cs
Content.Server/Atmos/EntitySystems/AtmosphereSystem.LINDA.cs
Content.Server/Atmos/EntitySystems/AtmosphereSystem.Monstermos.cs
Content.Server/Atmos/EntitySystems/AtmosphereSystem.Processing.cs
Content.Server/Atmos/EntitySystems/AtmosphereSystem.Superconductivity.cs
Content.Server/Atmos/TileAtmosphere.cs