aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/DataSnapshot/LandSnapshot.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/DataSnapshot/LandSnapshot.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/DataSnapshot/LandSnapshot.cs b/OpenSim/Region/DataSnapshot/LandSnapshot.cs
index 5288c74..18186d1 100644
--- a/OpenSim/Region/DataSnapshot/LandSnapshot.cs
+++ b/OpenSim/Region/DataSnapshot/LandSnapshot.cs
@@ -184,7 +184,7 @@ namespace OpenSim.Region.DataSnapshot.Providers
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 moot 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.Z + parcel.AABBMin.Z) / 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