From: Lordbrandon12 <107556696+Lordbrandon12@users.noreply.github.com> Date: Tue, 7 Oct 2025 12:42:43 +0000 (-0300) Subject: changes the min and max variables in the TargetTemperature clamp to t… (#40453) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=80c66c02bedf47da0b96d4aec0594d3a286c1b74;p=space-station-14.git changes the min and max variables in the TargetTemperature clamp to t… (#40453) changes the min and max variables in the TargetTemperature clamp to the space heater min and max temperatures --- diff --git a/Content.Server/Atmos/Portable/SpaceHeaterSystem.cs b/Content.Server/Atmos/Portable/SpaceHeaterSystem.cs index 1c05307c15..0d55ed12bd 100644 --- a/Content.Server/Atmos/Portable/SpaceHeaterSystem.cs +++ b/Content.Server/Atmos/Portable/SpaceHeaterSystem.cs @@ -112,7 +112,9 @@ public sealed class SpaceHeaterSystem : EntitySystem if (!TryComp(uid, out var thermoMachine)) return; - thermoMachine.TargetTemperature = float.Clamp(thermoMachine.TargetTemperature + args.Temperature, thermoMachine.MinTemperature, thermoMachine.MaxTemperature); + thermoMachine.TargetTemperature = float.Clamp(thermoMachine.TargetTemperature + args.Temperature, + spaceHeater.MinTemperature, + spaceHeater.MaxTemperature); UpdateAppearance(uid); DirtyUI(uid, spaceHeater);