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>
This commit is contained in:
@@ -231,7 +231,7 @@ namespace Content.Server.Atmos.EntitySystems
|
||||
tile.MapAtmosphere = false;
|
||||
atmos.MapTiles.Remove(tile);
|
||||
tile.Air = null;
|
||||
Array.Clear(tile.MolesArchived);
|
||||
tile.AirArchived = null;
|
||||
tile.ArchivedCycle = 0;
|
||||
tile.LastShare = 0f;
|
||||
tile.Space = false;
|
||||
@@ -261,7 +261,7 @@ namespace Content.Server.Atmos.EntitySystems
|
||||
return;
|
||||
|
||||
tile.Air = null;
|
||||
Array.Clear(tile.MolesArchived);
|
||||
tile.AirArchived = null;
|
||||
tile.ArchivedCycle = 0;
|
||||
tile.LastShare = 0f;
|
||||
tile.Hotspot = new Hotspot();
|
||||
|
||||
Reference in New Issue
Block a user