]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix thermal regulation (#35971)
authorslarticodefast <161409025+slarticodefast@users.noreply.github.com>
Thu, 20 Mar 2025 22:40:31 +0000 (23:40 +0100)
committerGitHub <noreply@github.com>
Thu, 20 Mar 2025 22:40:31 +0000 (23:40 +0100)
Content.Server/Body/Systems/ThermalRegulatorSystem.cs

index a8bf4184ac81deab3c9e66974464b1c8d6f1cf12..3ba9e6af31802cbb10d17cf118b12f03610a1dd5 100644 (file)
@@ -51,6 +51,7 @@ public sealed class ThermalRegulatorSystem : EntitySystem
         if (!Resolve(ent, ref ent.Comp2, logMissing: false))
             return;
 
+        // TODO: Why do we have two datafields for this if they are only ever used once here?
         var totalMetabolismTempChange = ent.Comp1.MetabolismHeat - ent.Comp1.RadiatedHeat;
 
         // implicit heat regulation
@@ -74,7 +75,7 @@ public sealed class ThermalRegulatorSystem : EntitySystem
 
         // if body temperature is not within comfortable, thermal regulation
         // processes starts
-        if (tempDiff > ent.Comp1.ThermalRegulationTemperatureThreshold)
+        if (tempDiff < ent.Comp1.ThermalRegulationTemperatureThreshold)
             return;
 
         if (ent.Comp2.CurrentTemperature > ent.Comp1.NormalBodyTemperature)