From fc1b393031feb8d60d0de08da404bfb4edefa370 Mon Sep 17 00:00:00 2001 From: melanie Date: Mon, 13 Apr 2009 13:34:42 +0000 Subject: [PATCH] Add the parcel ID git-svn-id: http://forge.opensimulator.org/svn/osprofile/trunk@32 19860011-0018-435d-96ae-4a7b0aaa3128 --- OpenSimProfile/Modules/ProfileModule/OpenProfile.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OpenSimProfile/Modules/ProfileModule/OpenProfile.cs b/OpenSimProfile/Modules/ProfileModule/OpenProfile.cs index 24a23ea..730f140 100644 --- a/OpenSimProfile/Modules/ProfileModule/OpenProfile.cs +++ b/OpenSimProfile/Modules/ProfileModule/OpenProfile.cs @@ -378,12 +378,14 @@ namespace OpenSimProfile.Modules.OpenProfile ReqHash["snapshot_id"] = snapshotID.ToString(); ReqHash["sort_order"] = sortOrder.ToString(); ReqHash["enabled"] = enabled.ToString(); - ReqHash["parcel_uuid"] = remoteClient.Scene.RegionInfo.RegionID.ToString(); ReqHash["sim_name"] = remoteClient.Scene.RegionInfo.RegionName; ScenePresence p = FindPresence(remoteClient.AgentId); Vector3 avaPos = p.AbsolutePosition; + + ReqHash["parcel_uuid"] = Util.BuildFakeParcelID(remoteClient.Scene.RegionInfo.RegionHandle, (uint)avaPos.X, (uint)avaPos.Y); + Vector3 posGlobal = new Vector3(remoteClient.Scene.RegionInfo.RegionLocX*Constants.RegionSize + avaPos.X, remoteClient.Scene.RegionInfo.RegionLocY*Constants.RegionSize + avaPos.Y, avaPos.Z); ReqHash["pos_global"] = posGlobal.ToString();