From 4ac5da4ee226c8f9492ceb15ef0fb0121064ebc9 Mon Sep 17 00:00:00 2001 From: Christopher Latza Date: Tue, 23 Jun 2020 17:12:06 +0200 Subject: [PATCH] return 19850 --- src/BasicPathFinding.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/BasicPathFinding.cs b/src/BasicPathFinding.cs index d624d38..354bed7 100644 --- a/src/BasicPathFinding.cs +++ b/src/BasicPathFinding.cs @@ -326,6 +326,9 @@ namespace OpenSim.Modules.PathFinding if(_env.Start != null && _env.Target != null) { + if(_env.Start.PositionX == _env.Target.PositionX && _env.Start.PositionY == _env.Target.PositionY) + m_scriptModule.DispatchReply(requestData.ScriptID, 19850, "", requestData.RequestID.ToString()); + GridSize _pathFindingGridSize = new GridSize(_env.Size, _env.Size); Roy_T.AStar.Primitives.Size _pathFindingCellSize = new Roy_T.AStar.Primitives.Size(Distance.FromMeters(1), Distance.FromMeters(1)); Velocity _pathFindingVelocity = Velocity.FromKilometersPerHour(11.5f);