From ae2c0e2d7800501a0c4f3bc314d99decbb0aaffd Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Sun, 5 Oct 2008 03:48:51 +0000 Subject: Add a dummy "dwell" value to the data snapshot --- OpenSim/Region/DataSnapshot/LandSnapshot.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'OpenSim') diff --git a/OpenSim/Region/DataSnapshot/LandSnapshot.cs b/OpenSim/Region/DataSnapshot/LandSnapshot.cs index 8afbb3b..c4328e2 100644 --- a/OpenSim/Region/DataSnapshot/LandSnapshot.cs +++ b/OpenSim/Region/DataSnapshot/LandSnapshot.cs @@ -183,11 +183,15 @@ namespace OpenSim.Region.DataSnapshot.Providers //default location XmlNode tpLocation = nodeFactory.CreateNode(XmlNodeType.Element, "location", ""); 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); tpLocation.InnerText = loc.X.ToString() + "/" + loc.Y.ToString() + "/" + loc.Z.ToString(); 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 //land texture snapshot uuid -- cgit v1.1