aboutsummaryrefslogtreecommitdiff
path: root/order.go
diff options
context:
space:
mode:
Diffstat (limited to 'order.go')
-rw-r--r--order.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/order.go b/order.go
index eba71f9..d6f1ccb 100644
--- a/order.go
+++ b/order.go
@@ -23,6 +23,9 @@ func (e *Entity) MainAction(g *Game, destination physics.Point, entityAtDestinat
return
}
if e.Move.IsEnabled {
+ if e.Order.IsEnabled {
+ e.Order.Value = nil
+ }
physics.StartMove(&e.Move, e.Position, destination, moveMap)
return
}