Skip to content

Commit

Permalink
addendum ec47af0
Browse files Browse the repository at this point in the history
  • Loading branch information
jK committed Sep 4, 2014
1 parent 855c7a3 commit 81eb79c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion rts/Sim/Path/Default/IPathFinder.cpp
Expand Up @@ -167,7 +167,8 @@ IPath::SearchResult IPathFinder::InitSearch(const MoveDef& moveDef, const CPathF
ResetSearch();

// mark and store the start-block
blockStates.nodeMask[mStartBlockIdx] = PATHOPT_OPEN;
blockStates.nodeMask[mStartBlockIdx] &= PATHOPT_OBSOLETE; // clear all except PATHOPT_OBSOLETE
blockStates.nodeMask[mStartBlockIdx] |= PATHOPT_OPEN;
blockStates.fCost[mStartBlockIdx] = 0.0f;
blockStates.gCost[mStartBlockIdx] = 0.0f;
blockStates.SetMaxCost(NODE_COST_F, 0.0f);
Expand Down
2 changes: 1 addition & 1 deletion rts/Sim/Path/Default/PathDataTypes.h
Expand Up @@ -95,7 +95,7 @@ struct PathNodeStateBuffer {
//assert(idx>=0 && idx<fCost.size());
fCost[idx] = PATHCOST_INFINITY;
gCost[idx] = PATHCOST_INFINITY;
nodeMask[idx] &= PATHOPT_OBSOLETE;
nodeMask[idx] &= PATHOPT_OBSOLETE; // clear all except PATHOPT_OBSOLETE
}


Expand Down

0 comments on commit 81eb79c

Please sign in to comment.