- rollback the last pathfinder change its no good

This commit is contained in:
Mark Vejvoda 2012-05-12 00:50:15 +00:00
parent ef39f93457
commit dc270fbbaa
1 changed files with 15 additions and 15 deletions

View File

@ -341,21 +341,21 @@ private:
}
// Attempt to speed up pathfinding, only count up found path nodes
// to the # we need till we will refresh anyways
else {
//build next pointers
int currentPathNodeCount = 0;
Node *currNode= node;
while(currNode->prev != NULL) {
currentPathNodeCount++;
currNode->prev->next= currNode;
currNode= currNode->prev;
}
if(currentPathNodeCount > PathFinder::pathFindRefresh) {
pathFound = true;
break;
}
}
// else {
// //build next pointers
// int currentPathNodeCount = 0;
// Node *currNode= node;
// while(currNode->prev != NULL) {
// currentPathNodeCount++;
// currNode->prev->next= currNode;
// currNode= currNode->prev;
// }
//
// if(currentPathNodeCount > (PathFinder::pathFindRefresh * 2)) {
// pathFound = true;
// break;
// }
// }
if(tryJPSPathfinder == true) {
closedNodes[node->pos] = true;