From 2c8bbab70c690cdbb6201b79f3180b8552b53ae1 Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Thu, 24 Jul 2025 14:24:09 +0200 Subject: fix: main move cancels orders --- order.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'order.go') 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 } -- cgit v1.3