From 413ca9812d4e5b6b1323a19a21f2339477ed3ac1 Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Mon, 12 Oct 2020 01:30:24 +1100 Subject: [PATCH] Make click-dragging consider dragged's direction (#2231) Co-authored-by: Metal Gear Sloth --- Content.Client/GameObjects/EntitySystems/DragDropSystem.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Content.Client/GameObjects/EntitySystems/DragDropSystem.cs b/Content.Client/GameObjects/EntitySystems/DragDropSystem.cs index d9ddadb357..d42dd57fce 100644 --- a/Content.Client/GameObjects/EntitySystems/DragDropSystem.cs +++ b/Content.Client/GameObjects/EntitySystems/DragDropSystem.cs @@ -241,6 +241,10 @@ namespace Content.Client.GameObjects.EntitySystems dragSprite.Color = dragSprite.Color.WithAlpha(0.7f); // keep it on top of everything dragSprite.DrawDepth = (int) DrawDepth.Overlays; + if (dragSprite.Directional) + { + _dragShadow.Transform.WorldRotation = _draggedEntity.Transform.WorldRotation; + } HighlightTargets(); }