Pathfinding bugfixes / Logic dialog hiding "unfixed"

This commit is contained in:
Anuken
2023-08-09 13:05:19 -04:00
parent 19f34c14a0
commit f1172d45eb
5 changed files with 17 additions and 13 deletions

View File

@@ -233,7 +233,7 @@ public class ControlPathfinder{
req.curId = pathId;
//check for the unit getting stuck every N seconds
if((req.stuckTimer += Time.delta) >= 60f * 1.5f){
if(req.done && (req.stuckTimer += Time.delta) >= 60f * 1.5f){
req.stuckTimer = 0f;
//force recalculate
if(req.lastPos.within(unit, 1.5f)){