From: āda Date: Tue, 16 Dec 2025 11:17:53 +0000 (-0600) Subject: Small improvement to suit sensor update loop (#41872) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=b0b88b216d146e9a401345f058bc7b5d11742d83;p=space-station-14.git Small improvement to suit sensor update loop (#41872) commit Co-authored-by: iaada --- diff --git a/Content.Server/Medical/SuitSensors/SuitSensorSystem.cs b/Content.Server/Medical/SuitSensors/SuitSensorSystem.cs index 72c3f5ecd9..5674b149e3 100644 --- a/Content.Server/Medical/SuitSensors/SuitSensorSystem.cs +++ b/Content.Server/Medical/SuitSensors/SuitSensorSystem.cs @@ -27,12 +27,11 @@ public sealed class SuitSensorSystem : SharedSuitSensorSystem // check if sensor is ready to update if (curTime < sensor.NextUpdate) continue; + sensor.NextUpdate += sensor.UpdateRate; if (!CheckSensorAssignedStation((uid, sensor))) continue; - sensor.NextUpdate += sensor.UpdateRate; - // get sensor status var status = GetSensorState((uid, sensor)); if (status == null)