From: slarticodefast <161409025+slarticodefast@users.noreply.github.com> Date: Thu, 20 Mar 2025 22:40:31 +0000 (+0100) Subject: Fix thermal regulation (#35971) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=4d50a5a903c19e0aedfa0f9cb2072089535d7b5a;p=space-station-14.git Fix thermal regulation (#35971) --- diff --git a/Content.Server/Body/Systems/ThermalRegulatorSystem.cs b/Content.Server/Body/Systems/ThermalRegulatorSystem.cs index a8bf4184ac..3ba9e6af31 100644 --- a/Content.Server/Body/Systems/ThermalRegulatorSystem.cs +++ b/Content.Server/Body/Systems/ThermalRegulatorSystem.cs @@ -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)