diff options
Diffstat (limited to 'OpenSim/Region/DataSnapshot/LandSnapshot.cs')
-rw-r--r-- | OpenSim/Region/DataSnapshot/LandSnapshot.cs | 6 |
1 files changed, 5 insertions, 1 deletions
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 | |||
183 | //default location | 183 | //default location |
184 | XmlNode tpLocation = nodeFactory.CreateNode(XmlNodeType.Element, "location", ""); | 184 | XmlNode tpLocation = nodeFactory.CreateNode(XmlNodeType.Element, "location", ""); |
185 | Vector3 loc = parcel.UserLocation; | 185 | Vector3 loc = parcel.UserLocation; |
186 | if (loc.Equals(Vector3.Zero)) // This test is mute at this point: the location is wrong by default | 186 | if (loc.Equals(Vector3.Zero)) // This test is moot at this point: the location is wrong by default |
187 | loc = new Vector3((parcel.AABBMax.X - parcel.AABBMin.X) / 2, (parcel.AABBMax.Y - parcel.AABBMin.Y) / 2, (parcel.AABBMax.Y - parcel.AABBMin.Y) / 2); | 187 | loc = new Vector3((parcel.AABBMax.X - parcel.AABBMin.X) / 2, (parcel.AABBMax.Y - parcel.AABBMin.Y) / 2, (parcel.AABBMax.Y - parcel.AABBMin.Y) / 2); |
188 | tpLocation.InnerText = loc.X.ToString() + "/" + loc.Y.ToString() + "/" + loc.Z.ToString(); | 188 | tpLocation.InnerText = loc.X.ToString() + "/" + loc.Y.ToString() + "/" + loc.Z.ToString(); |
189 | xmlparcel.AppendChild(tpLocation); | 189 | xmlparcel.AppendChild(tpLocation); |
190 | 190 | ||
191 | XmlNode dwell = nodeFactory.CreateNode(XmlNodeType.Element, "dwell", ""); | ||
192 | dwell.InnerText = "0"; | ||
193 | xmlparcel.AppendChild(dwell); | ||
194 | |||
191 | //TODO: figure how to figure out teleport system landData.landingType | 195 | //TODO: figure how to figure out teleport system landData.landingType |
192 | 196 | ||
193 | //land texture snapshot uuid | 197 | //land texture snapshot uuid |