From d1c86ee235235c1f06147f0137f3feffe70a4d98 Mon Sep 17 00:00:00 2001
From: ArtisticRoomba <145879011+ArtisticRoomba@users.noreply.github.com>
Date: Mon, 16 Mar 2026 18:26:14 -0700
Subject: [PATCH] Fix floating point tilefire nonsense (#43263)
* Change method call and epsilon
* holy guacamole
---
.../Atmos/EntitySystems/AtmosphereSystem.Hotspot.cs | 2 +-
Content.Shared/Atmos/Atmospherics.cs | 2 +-
.../Atmos/EntitySystems/SharedAtmosphereSystem.Gases.cs | 6 +++---
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/Content.Server/Atmos/EntitySystems/AtmosphereSystem.Hotspot.cs b/Content.Server/Atmos/EntitySystems/AtmosphereSystem.Hotspot.cs
index d667d99435c..5022f3c99a0 100644
--- a/Content.Server/Atmos/EntitySystems/AtmosphereSystem.Hotspot.cs
+++ b/Content.Server/Atmos/EntitySystems/AtmosphereSystem.Hotspot.cs
@@ -204,7 +204,7 @@ public sealed partial class AtmosphereSystem
if (!IsMixtureOxidizer(tile.Air))
return;
- var isFlammable = IsMixtureIgnitable(tile.Air);
+ var isFlammable = IsMixtureFuel(tile.Air);
if (tile.Hotspot.Valid)
{
diff --git a/Content.Shared/Atmos/Atmospherics.cs b/Content.Shared/Atmos/Atmospherics.cs
index e53ce29fd32..10d303cd1d4 100644
--- a/Content.Shared/Atmos/Atmospherics.cs
+++ b/Content.Shared/Atmos/Atmospherics.cs
@@ -22,7 +22,7 @@ namespace Content.Shared.Atmos
///
/// Global Atmospherics epsilon. Used for all general floating-point comparisons.
///
- public const float Epsilon = 0.001f;
+ public const float Epsilon = 0.5f;
///
/// Maximum external pressure (in kPA) a gas miner will, by default, output to.
diff --git a/Content.Shared/Atmos/EntitySystems/SharedAtmosphereSystem.Gases.cs b/Content.Shared/Atmos/EntitySystems/SharedAtmosphereSystem.Gases.cs
index ce50fbb3b0e..c7267393dd5 100644
--- a/Content.Shared/Atmos/EntitySystems/SharedAtmosphereSystem.Gases.cs
+++ b/Content.Shared/Atmos/EntitySystems/SharedAtmosphereSystem.Gases.cs
@@ -115,7 +115,7 @@ public abstract partial class SharedAtmosphereSystem
/// considered ignitable, for both oxidizer and fuel.
/// True if the is ignitable, otherwise, false.
[PublicAPI]
- public bool IsMixtureIgnitable(GasMixture mixture, float epsilon = 0.001f)
+ public bool IsMixtureIgnitable(GasMixture mixture, float epsilon = Atmospherics.Epsilon)
{
return IsMixtureFuel(mixture, epsilon) && IsMixtureOxidizer(mixture, epsilon);
}
@@ -128,7 +128,7 @@ public abstract partial class SharedAtmosphereSystem
/// is considered fuel.
/// True if the is fuel, otherwise, false.
[PublicAPI]
- public abstract bool IsMixtureFuel(GasMixture mixture, float epsilon = 0.001f);
+ public abstract bool IsMixtureFuel(GasMixture mixture, float epsilon = Atmospherics.Epsilon);
///
/// Determines if a has oxidizer gases in it or not.
@@ -138,7 +138,7 @@ public abstract partial class SharedAtmosphereSystem
/// is considered an oxidizer.
/// True if the is an oxidizer, otherwise, false.
[PublicAPI]
- public abstract bool IsMixtureOxidizer(GasMixture mixture, float epsilon = 0.001f);
+ public abstract bool IsMixtureOxidizer(GasMixture mixture, float epsilon = Atmospherics.Epsilon);
///
/// Calculates the heat capacity for a .