From: Jackson Langley Date: Fri, 18 Jul 2025 15:33:24 +0000 (-0500) Subject: Fix the max scanner distances (#39041) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=2ce03ad65154e6ca81918114a30385c941f8c136;p=space-station-14.git Fix the max scanner distances (#39041) * Good god * Satan's in my PC --- diff --git a/Content.Client/Shuttles/UI/ShuttleNavControl.xaml.cs b/Content.Client/Shuttles/UI/ShuttleNavControl.xaml.cs index 1a0e3aae81..2dcec6b44a 100644 --- a/Content.Client/Shuttles/UI/ShuttleNavControl.xaml.cs +++ b/Content.Client/Shuttles/UI/ShuttleNavControl.xaml.cs @@ -220,9 +220,9 @@ public sealed partial class ShuttleNavControl : BaseShuttleControl var gridCentre = Vector2.Transform(gridBody.LocalCenter, curGridToView); - var distance = gridCentre.Length(); + var gridDistance = (gridBody.LocalCenter - xform.LocalPosition).Length(); var labelText = Loc.GetString("shuttle-console-iff-label", ("name", labelName), - ("distance", $"{distance:0.0}")); + ("distance", $"{gridDistance:0.0}")); var mapCoords = _transform.GetWorldPosition(gUid); var coordsText = $"({mapCoords.X:0.0}, {mapCoords.Y:0.0})";