From: Kot <1192090+koteq@users.noreply.github.com> Date: Wed, 20 Dec 2023 23:43:46 +0000 (+0300) Subject: fix: ExtensionCableSystem to be consistent (#22745) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=9e03d7cc3e1bfc31a8c53416efd97d6abae720f0;p=space-station-14.git fix: ExtensionCableSystem to be consistent (#22745) * fix: Use manhattan distance for extension cable system * fix: Changed my mind --- diff --git a/Content.Server/Power/EntitySystems/ExtensionCableSystem.cs b/Content.Server/Power/EntitySystems/ExtensionCableSystem.cs index 9d68b60418..acfb8ff87b 100644 --- a/Content.Server/Power/EntitySystems/ExtensionCableSystem.cs +++ b/Content.Server/Power/EntitySystems/ExtensionCableSystem.cs @@ -145,7 +145,7 @@ namespace Content.Server.Power.EntitySystems if (!receiver.Connectable || receiver.Provider != null) continue; - if ((Transform(entity).LocalPosition - xform.LocalPosition).Length() < Math.Min(range, receiver.ReceptionRange)) + if ((Transform(entity).LocalPosition - xform.LocalPosition).Length() <= Math.Min(range, receiver.ReceptionRange)) yield return (entity, receiver); } }