From 2b57b6be1db62473c2de229d94ade27ba2ec939c Mon Sep 17 00:00:00 2001 From: Gustas <37534529+PunkPun@users.noreply.github.com> Date: Tue, 6 Dec 2022 18:04:57 +0200 Subject: [PATCH] Don't cancel attack move cursor when holding shift --- OpenRA.Mods.Common/Traits/AttackMove.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/OpenRA.Mods.Common/Traits/AttackMove.cs b/OpenRA.Mods.Common/Traits/AttackMove.cs index b33d563f87..6aff4913f5 100644 --- a/OpenRA.Mods.Common/Traits/AttackMove.cs +++ b/OpenRA.Mods.Common/Traits/AttackMove.cs @@ -125,9 +125,10 @@ namespace OpenRA.Mods.Common.Traits { if (mi.Button == expectedButton) { - world.CancelInputMode(); - var queued = mi.Modifiers.HasModifier(Modifiers.Shift); + if (!queued) + world.CancelInputMode(); + var orderName = mi.Modifiers.HasModifier(Modifiers.Ctrl) ? "AssaultMove" : "AttackMove"; // Cells outside the playable area should be clamped to the edge for consistency with move orders