[-] Fixed bug with AI pathfinding on shorelines.
This commit is contained in:
parent
2ef346636f
commit
fcf4752d0a
1 changed files with 1 additions and 1 deletions
|
@ -179,7 +179,7 @@ VisitResult BuildingPlaceFinder::Visit(TerrainTraversal &terrainTraversal, const
|
|||
*resultPos = pos;
|
||||
}
|
||||
}
|
||||
if (CanMoveToMask(pos, movemask)) { // reachable
|
||||
if (type.ShoreBuilding || CanMoveToMask(pos, movemask)) { // reachable
|
||||
return VisitResult_Ok;
|
||||
} else { // unreachable
|
||||
return VisitResult_DeadEnd;
|
||||
|
|
Loading…
Reference in a new issue