aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/DataSnapshot
diff options
context:
space:
mode:
authorMelanie Thielker2008-10-05 03:48:51 +0000
committerMelanie Thielker2008-10-05 03:48:51 +0000
commitae2c0e2d7800501a0c4f3bc314d99decbb0aaffd (patch)
treebed97a33d7c5d4903dacb35846f523ecafe539bc /OpenSim/Region/DataSnapshot
parentSmall bug fix (diff)
downloadopensim-SC-ae2c0e2d7800501a0c4f3bc314d99decbb0aaffd.zip
opensim-SC-ae2c0e2d7800501a0c4f3bc314d99decbb0aaffd.tar.gz
opensim-SC-ae2c0e2d7800501a0c4f3bc314d99decbb0aaffd.tar.bz2
opensim-SC-ae2c0e2d7800501a0c4f3bc314d99decbb0aaffd.tar.xz
Add a dummy "dwell" value to the data snapshot
Diffstat (limited to 'OpenSim/Region/DataSnapshot')
-rw-r--r--OpenSim/Region/DataSnapshot/LandSnapshot.cs6
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