[-] Fixed bug with AI pathfinding on shorelines.

This commit is contained in:
cybermind 2015-02-12 20:54:53 +05:00
parent 2ef346636f
commit fcf4752d0a

View file

@ -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;