add PATH_ENV_ERR_TARGET_NOT_REACHABLE
parent
4830bbddd6
commit
ccfa5a38ed
|
@ -127,7 +127,7 @@ namespace OpenSim.Modules.PathFinding
|
||||||
m_scriptModule.RegisterConstant("PATH_ENV_ERR_OUT_OF_RANGE", 19852);
|
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_NOT_IN_LINE", 19853);
|
||||||
m_scriptModule.RegisterConstant("PATH_ENV_ERR_START_OR_END_UNKNOWN", 19854);
|
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);
|
m_scriptModule.RegisterConstant("PATH_ENV_ERR_UNKNOWN", 19860);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
@ -451,7 +451,12 @@ namespace OpenSim.Modules.PathFinding
|
||||||
}
|
}
|
||||||
else
|
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
|
else
|
||||||
|
|
Loading…
Reference in New Issue