From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Tue, 27 May 2025 11:34:23 +0000 (+1000) Subject: Don't click-to-face when moving (#37874) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=3c52dd102ea222763c8d950c91d729c1688b1142;p=space-station-14.git Don't click-to-face when moving (#37874) Looks bad doing it for a single tick. --- diff --git a/Content.Shared/Interaction/SharedInteractionSystem.cs b/Content.Shared/Interaction/SharedInteractionSystem.cs index 230fbda8d3..5f063a9070 100644 --- a/Content.Shared/Interaction/SharedInteractionSystem.cs +++ b/Content.Shared/Interaction/SharedInteractionSystem.cs @@ -17,6 +17,7 @@ using Content.Shared.Inventory.Events; using Content.Shared.Item; using Content.Shared.Movement.Components; using Content.Shared.Movement.Pulling.Systems; +using Content.Shared.Movement.Systems; using Content.Shared.Physics; using Content.Shared.Players.RateLimiting; using Content.Shared.Popups; @@ -567,8 +568,11 @@ namespace Content.Shared.Interaction if (_transform.GetMapId(coordinates) != Transform(user).MapID) return false; - if (!HasComp(user)) + // Only rotate to face if they're not moving. + if (!HasComp(user) && (!TryComp(user, out InputMoverComponent? mover) || (mover.HeldMoveButtons & MoveButtons.AnyDirection) == 0x0)) + { _rotateToFaceSystem.TryFaceCoordinates(user, _transform.ToMapCoordinates(coordinates).Position); + } return true; }