discornect node

master
Christopher Latza 2020-06-23 02:29:38 +02:00
parent ccfa5a38ed
commit 962d491def
1 changed files with 3 additions and 0 deletions

View File

@ -434,7 +434,10 @@ namespace OpenSim.Modules.PathFinding
PathNode _node = _env.Nodes.Find(X => X.PositionX == (int)_thisNode.Position.X && X.PositionY == (int)_thisNode.Position.Y); PathNode _node = _env.Nodes.Find(X => X.PositionX == (int)_thisNode.Position.X && X.PositionY == (int)_thisNode.Position.Y);
if(_node == null) if(_node == null)
{
_pathFindingGrid.DisconnectNode(new GridPosition((int)_thisNode.Position.X, (int)_thisNode.Position.Y));
_pathFindingGrid.RemoveDiagonalConnectionsIntersectingWithNode(new GridPosition((int)_thisNode.Position.X, (int)_thisNode.Position.Y)); _pathFindingGrid.RemoveDiagonalConnectionsIntersectingWithNode(new GridPosition((int)_thisNode.Position.X, (int)_thisNode.Position.Y));
}
} }
PathFinder pathFinder = new PathFinder(); PathFinder pathFinder = new PathFinder();