Don't cancel attack move cursor when holding shift

This commit is contained in:
Gustas
2022-12-06 18:04:57 +02:00
committed by abcdefg30
parent 45d4a2c7e2
commit 2b57b6be1d

View File

@@ -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