Doesn't move when changing direction looking

This commit is contained in:
Niklas Ulf Anders Cullberg
2012-10-09 16:14:11 +02:00
parent 6e3b2f2f94
commit 7ea3b0be99
2 changed files with 182 additions and 180 deletions
+2
View File
@@ -110,8 +110,10 @@ namespace DepthsBelow
foreach (var unit in core.Squad) foreach (var unit in core.Squad)
if (unit.Selected) if (unit.Selected)
{ {
if (checkingDirection == false) {
unit.GetComponent<Component.PathFinder>().Goal = Grid.WorldToGrid(mouseWorldPos); unit.GetComponent<Component.PathFinder>().Goal = Grid.WorldToGrid(mouseWorldPos);
} }
}
} }
if (ms.RightButton == ButtonState.Pressed) if (ms.RightButton == ButtonState.Pressed)