diff --git a/DepthsBelow/DepthsBelow/MouseInput.cs b/DepthsBelow/DepthsBelow/MouseInput.cs index 59f87e5..f581d93 100755 --- a/DepthsBelow/DepthsBelow/MouseInput.cs +++ b/DepthsBelow/DepthsBelow/MouseInput.cs @@ -107,13 +107,14 @@ namespace DepthsBelow // Send orders with right click if (ms.RightButton == ButtonState.Released && lastMouseState.RightButton == ButtonState.Pressed) { - foreach (var unit in core.Squad) - if (unit.Selected) - { - if (checkingDirection == false) { - unit.GetComponent().Goal = Grid.WorldToGrid(mouseWorldPos); + if (checkingDirection == false) + { + foreach (var unit in core.Squad) + if (unit.Selected) + { + unit.GetComponent().Goal = Grid.WorldToGrid(mouseWorldPos); } - } + } } if (ms.RightButton == ButtonState.Pressed)