diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2023-10-06 07:08:27 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2023-10-06 07:08:27 +0200 |
| commit | 0735888213d8575cf870f22d4d905af3f3c1ac9b (patch) | |
| tree | 7c05f337e6db6dbff43cda22346482d7263b1e3e /move.go | |
| parent | bf546b1b4c92d3d358a85b6b760dad01bc95ea7c (diff) | |
fix(order): Start move of unselected units in order
Diffstat (limited to 'move.go')
| -rw-r--r-- | move.go | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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())) } } |
