diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 29 |
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> |