mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-27 06:51:30 -08:00
Fixed #10742
This commit is contained in:
parent
b4068f2a74
commit
e57d91a751
1 changed files with 2 additions and 2 deletions
|
|
@ -1196,7 +1196,7 @@ public class ControlPathfinder implements Runnable{
|
|||
anyNearSolid = true;
|
||||
}
|
||||
|
||||
if((value == 0 || otherCost < value) && otherCost != impassable && ((otherCost != 0 && (current == null || otherCost < minCost)) || packed == actualDestPos || packed == destPos) && passable(unit.team.id, cost, packed)){
|
||||
if((value == 0 || otherCost < value) && otherCost != impassable && ((otherCost != 0 && (current == null || otherCost < minCost)) || packed == actualDestPos || packed == destPos) && passable(team, cost, packed)){
|
||||
current = other;
|
||||
minCost = otherCost;
|
||||
//no need to keep searching.
|
||||
|
|
@ -1246,7 +1246,7 @@ public class ControlPathfinder implements Runnable{
|
|||
if(showDebug && Core.graphics.getFrameId() % 30 == 0){
|
||||
Fx.breakBlock.at(request.lastTargetTile.worldx(), request.lastTargetTile.worldy(), 1);
|
||||
}
|
||||
out.set(request.lastTargetTile);
|
||||
out.set(request.lastTargetTile.worldx(), request.lastTargetTile.worldy());
|
||||
request.lastTile = recalc ? -1 : initialTileOn.pos();
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue