]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
fix: ExtensionCableSystem to be consistent (#22745)
authorKot <1192090+koteq@users.noreply.github.com>
Wed, 20 Dec 2023 23:43:46 +0000 (02:43 +0300)
committerGitHub <noreply@github.com>
Wed, 20 Dec 2023 23:43:46 +0000 (16:43 -0700)
* fix: Use manhattan distance for extension cable system

* fix: Changed my mind

Content.Server/Power/EntitySystems/ExtensionCableSystem.cs

index 9d68b60418bb6648bcbef515247bdb80792f38e4..acfb8ff87b3674247694e89ae66303d993bde995 100644 (file)
@@ -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);
             }
         }