diff options
author | Diva Canto | 2013-05-11 07:58:14 -0700 |
---|---|---|
committer | Diva Canto | 2013-05-11 07:58:14 -0700 |
commit | a4431381fa8a4f759a9c7eb9e30ae915504d4fdc (patch) | |
tree | ae5c03e2a5b9c29ec7c7b7245d64ebccebb4f005 /OpenSim/Region/Framework/Scenes | |
parent | Merge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff) | |
download | opensim-SC_OLD-a4431381fa8a4f759a9c7eb9e30ae915504d4fdc.zip opensim-SC_OLD-a4431381fa8a4f759a9c7eb9e30ae915504d4fdc.tar.gz opensim-SC_OLD-a4431381fa8a4f759a9c7eb9e30ae915504d4fdc.tar.bz2 opensim-SC_OLD-a4431381fa8a4f759a9c7eb9e30ae915504d4fdc.tar.xz |
Finalize the logic for SetHome. See comments in Land/LandManagementModule.cs about who has permission to set home where.
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 80c4922..6bbcbd7 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -3090,7 +3090,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
3090 | { | 3090 | { |
3091 | //client.OnNameFromUUIDRequest += HandleUUIDNameRequest; | 3091 | //client.OnNameFromUUIDRequest += HandleUUIDNameRequest; |
3092 | client.OnMoneyTransferRequest += ProcessMoneyTransferRequest; | 3092 | client.OnMoneyTransferRequest += ProcessMoneyTransferRequest; |
3093 | client.OnSetStartLocationRequest += SetHomeRezPoint; | ||
3094 | client.OnRegionHandleRequest += RegionHandleRequest; | 3093 | client.OnRegionHandleRequest += RegionHandleRequest; |
3095 | } | 3094 | } |
3096 | 3095 | ||
@@ -3215,7 +3214,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
3215 | { | 3214 | { |
3216 | //client.OnNameFromUUIDRequest -= HandleUUIDNameRequest; | 3215 | //client.OnNameFromUUIDRequest -= HandleUUIDNameRequest; |
3217 | client.OnMoneyTransferRequest -= ProcessMoneyTransferRequest; | 3216 | client.OnMoneyTransferRequest -= ProcessMoneyTransferRequest; |
3218 | client.OnSetStartLocationRequest -= SetHomeRezPoint; | ||
3219 | client.OnRegionHandleRequest -= RegionHandleRequest; | 3217 | client.OnRegionHandleRequest -= RegionHandleRequest; |
3220 | } | 3218 | } |
3221 | 3219 | ||
@@ -3342,23 +3340,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
3342 | } | 3340 | } |
3343 | 3341 | ||
3344 | /// <summary> | 3342 | /// <summary> |
3345 | /// Sets the Home Point. The LoginService uses this to know where to put a user when they log-in | ||
3346 | /// </summary> | ||
3347 | /// <param name="remoteClient"></param> | ||
3348 | /// <param name="regionHandle"></param> | ||
3349 | /// <param name="position"></param> | ||
3350 | /// <param name="lookAt"></param> | ||
3351 | /// <param name="flags"></param> | ||
3352 | public virtual void SetHomeRezPoint(IClientAPI remoteClient, ulong regionHandle, Vector3 position, Vector3 lookAt, uint flags) | ||
3353 | { | ||
3354 | if (GridUserService != null && GridUserService.SetHome(remoteClient.AgentId.ToString(), RegionInfo.RegionID, position, lookAt)) | ||
3355 | // FUBAR ALERT: this needs to be "Home position set." so the viewer saves a home-screenshot. | ||
3356 | m_dialogModule.SendAlertToUser(remoteClient, "Home position set."); | ||
3357 | else | ||
3358 | m_dialogModule.SendAlertToUser(remoteClient, "Set Home request Failed."); | ||
3359 | } | ||
3360 | |||
3361 | /// <summary> | ||
3362 | /// Get the avatar apperance for the given client. | 3343 | /// Get the avatar apperance for the given client. |
3363 | /// </summary> | 3344 | /// </summary> |
3364 | /// <param name="client"></param> | 3345 | /// <param name="client"></param> |