]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Reduce absolute temperature tolerance (#22782)
authorKevin Zheng <kevinz5000@gmail.com>
Wed, 20 Dec 2023 23:42:23 +0000 (15:42 -0800)
committerGitHub <noreply@github.com>
Wed, 20 Dec 2023 23:42:23 +0000 (16:42 -0700)
MinimumTemperatureDeltaToConsider sets the minimum temperature
difference for a heat capacity calculation to be run. The problem is
that when heating up large quantities of gas (e.g. with a heater), a
small dT becomes an even smaller dT when running DivideInto(). This
means that small changes in temperature are completely ignored.

Content.Shared/Atmos/Atmospherics.cs

index 13674cded0b3079ce109d70e497fc1a542b8ace8..24fa5ada20481472a0dba4bc59f9bfe8a7ede3ad 100644 (file)
@@ -123,7 +123,7 @@ namespace Content.Shared.Atmos
         /// <summary>
         ///     Minimum temperature difference before the gas temperatures are just set to be equal.
         /// </summary>
-        public const float MinimumTemperatureDeltaToConsider = 0.1f;
+        public const float MinimumTemperatureDeltaToConsider = 0.01f;
 
         /// <summary>
         ///     Minimum temperature for starting superconduction.