mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-10 06:34:16 +00:00
...
This commit is contained in:
parent
7df13251d1
commit
430604da6a
1 changed files with 3 additions and 3 deletions
|
@ -162,16 +162,16 @@ namespace SanAndreasUnity.Behaviours
|
|||
return FindPathInBackground(closestSourceNode, closestDestinationNode);
|
||||
}
|
||||
|
||||
private PathResult FindPathInBackground(PathNode closestSourceNode, PathNode closestDestinationNode)
|
||||
private PathResult FindPathInBackground(PathNode sourceNode, PathNode destinationNode)
|
||||
{
|
||||
var stopwatch = Stopwatch.StartNew();
|
||||
PathResult pathResult = new PathResult { IsSuccess = false };
|
||||
|
||||
this.RestoreModifiedDatas();
|
||||
|
||||
if (FindPathFromNodeToNode(closestSourceNode.Id, closestDestinationNode.Id))
|
||||
if (FindPathFromNodeToNode(sourceNode.Id, destinationNode.Id))
|
||||
{
|
||||
pathResult = BuildPath(closestDestinationNode.Id);
|
||||
pathResult = BuildPath(destinationNode.Id);
|
||||
}
|
||||
|
||||
int numModifiedDatas = m_modifiedDatas.Count;
|
||||
|
|
Loading…
Reference in a new issue