If soldiers cannot walk onto a node on their path because it is blocked by another soldier, the "blocked" signal is emitted. On the next call to attack_update the pathfinding is triggered and the soldier tries to walk along a new path. If the soliders is blocked on the new path as well, it either means he just had bad luck or the soldier is stuck.
In my patch I consider a soldier as stuck if the soldier is blocked X+1 times in a row. Where X is currently set to 10.
Do you guys agree that this patch is ready to be merged? If so I would start a merge request.
If soldiers cannot walk onto a node on their path because it is blocked by another soldier, the "blocked" signal is emitted. On the next call to attack_update the pathfinding is triggered and the soldier tries to walk along a new path. If the soliders is blocked on the new path as well, it either means he just had bad luck or the soldier is stuck.
In my patch I consider a soldier as stuck if the soldier is blocked X+1 times in a row. Where X is currently set to 10.
Do you guys agree that this patch is ready to be merged? If so I would start a merge request.