Path finder was not clearing closed flag properly.
This commit is contained in:
parent
ed73b46308
commit
587dfb80f8
@ -757,7 +757,7 @@ int dtTiledNavMesh::findPath(dtTilePolyRef startRef, dtTilePolyRef endRef,
|
|||||||
if (!((actualNode->flags & DT_NODE_OPEN) && newNode.total > actualNode->total) &&
|
if (!((actualNode->flags & DT_NODE_OPEN) && newNode.total > actualNode->total) &&
|
||||||
!((actualNode->flags & DT_NODE_CLOSED) && newNode.total > actualNode->total))
|
!((actualNode->flags & DT_NODE_CLOSED) && newNode.total > actualNode->total))
|
||||||
{
|
{
|
||||||
actualNode->flags &= DT_NODE_CLOSED;
|
actualNode->flags &= ~DT_NODE_CLOSED;
|
||||||
actualNode->pidx = newNode.pidx;
|
actualNode->pidx = newNode.pidx;
|
||||||
actualNode->cost = newNode.cost;
|
actualNode->cost = newNode.cost;
|
||||||
actualNode->total = newNode.total;
|
actualNode->total = newNode.total;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user