mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-22 11:04:32 +00:00
5ca63d19b8
Since71a61d5f50, formations regularly regroup. However, units already at their correct offset should remain idle. This doesn't happen as we cannot check if we are at destination. This exposes that and handles things properly... Unfortunately UnitAI has already left the IDLE state at this point, so we still get counted as no-longer idle for a turn. To fix this, try and detect that particular situation without triggering infinite loops. (cherry picked from commit2f7ac026c1) Signed-off-by: Itms <itms@wildfiregames.com>