aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes
diff options
context:
space:
mode:
authorMelanie2013-05-12 03:24:57 +0100
committerMelanie2013-05-12 03:24:57 +0100
commite8f4c7128fc65f12ef33b152e14b072809667642 (patch)
treea1708d78fa0ef078bf4d47233477fe531149e1ad /OpenSim/Region/Framework/Scenes
parentMerge branch 'master' into careminster (diff)
parentFinalize the logic for SetHome. See comments in Land/LandManagementModule.cs ... (diff)
downloadopensim-SC-e8f4c7128fc65f12ef33b152e14b072809667642.zip
opensim-SC-e8f4c7128fc65f12ef33b152e14b072809667642.tar.gz
opensim-SC-e8f4c7128fc65f12ef33b152e14b072809667642.tar.bz2
opensim-SC-e8f4c7128fc65f12ef33b152e14b072809667642.tar.xz
Merge branch 'master' into careminster
Conflicts: OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs OpenSim/Region/Framework/Scenes/Scene.cs
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs29
1 files changed, 0 insertions, 29 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index 1023e25..3aabd14 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -3246,7 +3246,6 @@ namespace OpenSim.Region.Framework.Scenes
3246 { 3246 {
3247 //client.OnNameFromUUIDRequest += HandleUUIDNameRequest; 3247 //client.OnNameFromUUIDRequest += HandleUUIDNameRequest;
3248 client.OnMoneyTransferRequest += ProcessMoneyTransferRequest; 3248 client.OnMoneyTransferRequest += ProcessMoneyTransferRequest;
3249 client.OnSetStartLocationRequest += SetHomeRezPoint;
3250 client.OnRegionHandleRequest += RegionHandleRequest; 3249 client.OnRegionHandleRequest += RegionHandleRequest;
3251 } 3250 }
3252 3251
@@ -3373,7 +3372,6 @@ namespace OpenSim.Region.Framework.Scenes
3373 { 3372 {
3374 //client.OnNameFromUUIDRequest -= HandleUUIDNameRequest; 3373 //client.OnNameFromUUIDRequest -= HandleUUIDNameRequest;
3375 client.OnMoneyTransferRequest -= ProcessMoneyTransferRequest; 3374 client.OnMoneyTransferRequest -= ProcessMoneyTransferRequest;
3376 client.OnSetStartLocationRequest -= SetHomeRezPoint;
3377 client.OnRegionHandleRequest -= RegionHandleRequest; 3375 client.OnRegionHandleRequest -= RegionHandleRequest;
3378 } 3376 }
3379 3377
@@ -3500,33 +3498,6 @@ namespace OpenSim.Region.Framework.Scenes
3500 } 3498 }
3501 3499
3502 /// <summary> 3500 /// <summary>
3503 /// Sets the Home Point. The LoginService uses this to know where to put a user when they log-in
3504 /// </summary>
3505 /// <param name="remoteClient"></param>
3506 /// <param name="regionHandle"></param>
3507 /// <param name="position"></param>
3508 /// <param name="lookAt"></param>
3509 /// <param name="flags"></param>
3510 public virtual void SetHomeRezPoint(IClientAPI remoteClient, ulong regionHandle, Vector3 position, Vector3 lookAt, uint flags)
3511 {
3512 //Add half the avatar's height so that the user doesn't fall through prims
3513 ScenePresence presence;
3514 if (TryGetScenePresence(remoteClient.AgentId, out presence))
3515 {
3516 if (presence.Appearance != null)
3517 {
3518 position.Z = position.Z + (presence.Appearance.AvatarHeight / 2);
3519 }
3520 }
3521
3522 if (GridUserService != null && GridUserService.SetHome(remoteClient.AgentId.ToString(), RegionInfo.RegionID, position, lookAt))
3523 // FUBAR ALERT: this needs to be "Home position set." so the viewer saves a home-screenshot.
3524 m_dialogModule.SendAlertToUser(remoteClient, "Home position set.");
3525 else
3526 m_dialogModule.SendAlertToUser(remoteClient, "Set Home request Failed.");
3527 }
3528
3529 /// <summary>
3530 /// Get the avatar apperance for the given client. 3501 /// Get the avatar apperance for the given client.
3531 /// </summary> 3502 /// </summary>
3532 /// <param name="client"></param> 3503 /// <param name="client"></param>