From 4bb670a59c56774b5e723617185ca2147ec888f0 Mon Sep 17 00:00:00 2001 From: router Date: Mon, 22 Jan 2024 01:33:06 +0300 Subject: [PATCH] Change Tmax for fixed floating point epsilon limit (#24370) This is the largest number that an epsilon of 1/64 = 0.015625K supports --- Content.Shared/Atmos/Atmospherics.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Shared/Atmos/Atmospherics.cs b/Content.Shared/Atmos/Atmospherics.cs index 0f330d9dcf..7460e08e46 100644 --- a/Content.Shared/Atmos/Atmospherics.cs +++ b/Content.Shared/Atmos/Atmospherics.cs @@ -52,7 +52,7 @@ namespace Content.Shared.Atmos /// calculations and so cap it here. The physical interpretation is that at this temperature, any /// gas that you would have transforms into plasma. /// - public const float Tmax = 200e3f; + public const float Tmax = 262144; // 1/64 of max safe integer, any values above will result in a ~0.03K epsilon /// /// Liters in a cell. -- 2.51.2