From 2dd77df85036ad0d19cab3dc4dbb8acd5dd18d4c Mon Sep 17 00:00:00 2001 From: "pa.pecherskij" Date: Sun, 29 Sep 2024 21:20:43 +0300 Subject: [PATCH] fix map atmos --- .../Atmos/EntitySystems/AtmosphereWeatherDeviceSystem.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Content.Server/Atmos/EntitySystems/AtmosphereWeatherDeviceSystem.cs b/Content.Server/Atmos/EntitySystems/AtmosphereWeatherDeviceSystem.cs index 1f491a65a4d..a88a9a7249c 100644 --- a/Content.Server/Atmos/EntitySystems/AtmosphereWeatherDeviceSystem.cs +++ b/Content.Server/Atmos/EntitySystems/AtmosphereWeatherDeviceSystem.cs @@ -144,15 +144,14 @@ public override void Update(float frameTime) { if (currentGas.Immutable) { - currentGas = new GasMixture(); - currentGas.CopyFrom(currentGas); + var newGas = new GasMixture(); + newGas.CopyFrom(currentGas); + currentGas = newGas; } currentGas.Temperature += temperatureChange; _atmosphere.SetMapAtmosphere(transform.MapUid!.Value, false, currentGas); } - - } } }