From 0735888213d8575cf870f22d4d905af3f3c1ac9b Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Fri, 6 Oct 2023 07:08:27 +0200 Subject: fix(order): Start move of unselected units in order --- move.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'move.go') diff --git a/move.go b/move.go index f9a54a3..aae83ed 100644 --- a/move.go +++ b/move.go @@ -161,10 +161,8 @@ func (p *Path) isValid(moveMap MoveMap) bool { func (e *Entity) StartMove(destination Point, moveMap MoveMap) { if e.Move.IsEnabled && e.Position.IsEnabled && e.Selection.IsEnabled { - if e.Selection.Value.IsSelected { - e.Move.Value = NewMove(e.Position.Value, destination, moveMap) - slog.Info("entity starting move", slog.String("destination", destination.String())) - } + e.Move.Value = NewMove(e.Position.Value, destination, moveMap) + slog.Info("entity starting move", slog.String("destination", destination.String())) } } -- cgit v1.3