a few more changes on vectors etc

This commit is contained in:
UbitUmarov
2022-01-10 02:21:17 +00:00
parent 7d78f62d49
commit 9b33ef9c8c
17 changed files with 19 additions and 19 deletions

View File

@@ -200,7 +200,7 @@ 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 moot at this point: the location is wrong by default
if (loc.IsZero()) // 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.Z + parcel.AABBMin.Z) / 2);
tpLocation.InnerText = loc.X.ToString() + "/" + loc.Y.ToString() + "/" + loc.Z.ToString();
xmlparcel.AppendChild(tpLocation);