mirror of
https://github.com/glest/glest-source.git
synced 2025-09-29 00:48:58 +02:00
fixed minor compiler issues in linux for new pathfinder changes
This commit is contained in:
@@ -409,7 +409,8 @@ float ClusterMap::aStarPathLength(Field f, int size, const Vec2i &start, const V
|
||||
DiagonalDistance dd(dest);
|
||||
se->setNodeLimit(GameConstants::clusterSize * GameConstants::clusterSize);
|
||||
se->setStart(start, dd(start));
|
||||
AStarResult res = se->aStar<PosGoal,MoveCost,DiagonalDistance>(PosGoal(dest), costFunc, dd);
|
||||
PosGoal goal(dest);
|
||||
AStarResult res = se->aStar<PosGoal,MoveCost,DiagonalDistance>(goal, costFunc, dd);
|
||||
Vec2i goalPos = se->getGoalPos();
|
||||
if (res != asrComplete || goalPos != dest) {
|
||||
return -1.f;
|
||||
|
Reference in New Issue
Block a user