add PATH_ENV_ERR_TARGET_NOT_REACHABLE

master
Christopher Latza 2020-06-23 02:27:17 +02:00
parent 4830bbddd6
commit ccfa5a38ed
1 changed files with 7 additions and 2 deletions

View File

@ -127,7 +127,7 @@ namespace OpenSim.Modules.PathFinding
m_scriptModule.RegisterConstant("PATH_ENV_ERR_OUT_OF_RANGE", 19852);
m_scriptModule.RegisterConstant("PATH_ENV_ERR_NOT_IN_LINE", 19853);
m_scriptModule.RegisterConstant("PATH_ENV_ERR_START_OR_END_UNKNOWN", 19854);
m_scriptModule.RegisterConstant("PATH_ENV_ERR_TARGET_NOT_CONNECTED", 19855);
m_scriptModule.RegisterConstant("PATH_ENV_ERR_TARGET_NOT_REACHABLE", 19855);
m_scriptModule.RegisterConstant("PATH_ENV_ERR_UNKNOWN", 19860);
}
catch (Exception e)
@ -451,7 +451,12 @@ namespace OpenSim.Modules.PathFinding
}
else
{
m_scriptModule.DispatchReply(requestData.ScriptID, 19855, "", requestData.RequestID.ToString());
String _pathString = "";
foreach (var _thisEdge in _pathFindingPath.Edges)
_pathString += "<" + _thisEdge.End.Position.X + ", " + _thisEdge.End.Position.Y + ", 0>;";
m_scriptModule.DispatchReply(requestData.ScriptID, 19855, _pathString, requestData.RequestID.ToString());
}
}
else