mirror of
https://github.com/kcozens/OpenSimProfile.git
synced 2026-08-14 09:02:00 +00:00
Add the parcel ID
git-svn-id: http://forge.opensimulator.org/svn/osprofile/trunk@32 19860011-0018-435d-96ae-4a7b0aaa3128
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user