Add a dummy "dwell" value to the data snapshot
parent
2cb89124c7
commit
ae2c0e2d78
|
@ -183,11 +183,15 @@ namespace OpenSim.Region.DataSnapshot.Providers
|
||||||
//default location
|
//default location
|
||||||
XmlNode tpLocation = nodeFactory.CreateNode(XmlNodeType.Element, "location", "");
|
XmlNode tpLocation = nodeFactory.CreateNode(XmlNodeType.Element, "location", "");
|
||||||
Vector3 loc = parcel.UserLocation;
|
Vector3 loc = parcel.UserLocation;
|
||||||
if (loc.Equals(Vector3.Zero)) // This test is mute at this point: the location is wrong by default
|
if (loc.Equals(Vector3.Zero)) // This test is moot at this point: the location is wrong by default
|
||||||
loc = new Vector3((parcel.AABBMax.X - parcel.AABBMin.X) / 2, (parcel.AABBMax.Y - parcel.AABBMin.Y) / 2, (parcel.AABBMax.Y - parcel.AABBMin.Y) / 2);
|
loc = new Vector3((parcel.AABBMax.X - parcel.AABBMin.X) / 2, (parcel.AABBMax.Y - parcel.AABBMin.Y) / 2, (parcel.AABBMax.Y - parcel.AABBMin.Y) / 2);
|
||||||
tpLocation.InnerText = loc.X.ToString() + "/" + loc.Y.ToString() + "/" + loc.Z.ToString();
|
tpLocation.InnerText = loc.X.ToString() + "/" + loc.Y.ToString() + "/" + loc.Z.ToString();
|
||||||
xmlparcel.AppendChild(tpLocation);
|
xmlparcel.AppendChild(tpLocation);
|
||||||
|
|
||||||
|
XmlNode dwell = nodeFactory.CreateNode(XmlNodeType.Element, "dwell", "");
|
||||||
|
dwell.InnerText = "0";
|
||||||
|
xmlparcel.AppendChild(dwell);
|
||||||
|
|
||||||
//TODO: figure how to figure out teleport system landData.landingType
|
//TODO: figure how to figure out teleport system landData.landingType
|
||||||
|
|
||||||
//land texture snapshot uuid
|
//land texture snapshot uuid
|
||||||
|
|
Loading…
Reference in New Issue