add last node
parent
3af153a320
commit
ddad4d9370
|
@ -452,11 +452,14 @@ namespace OpenSim.Modules.PathFinding
|
|||
if(lastX != (int)_thisEdge.End.Position.X && lastY != (int)_thisEdge.End.Position.Y)
|
||||
{
|
||||
_pathString += "<" + _thisEdge.End.Position.X + ", " + _thisEdge.End.Position.Y + ", 0>;";
|
||||
|
||||
lastX = (int)_thisEdge.End.Position.X;
|
||||
lastY = (int)_thisEdge.End.Position.Y;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
_pathString += "<" + _pathFindingPath.Edges[_pathFindingPath.Edges.Count-1].End.Position.X + ", " + _pathFindingPath.Edges[_pathFindingPath.Edges.Count - 1].End.Position.Y + ", 0>;";
|
||||
|
||||
|
||||
if (_pathFindingPath.Type == PathType.Complete)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue