diff options
author | Teravus Ovares | 2008-04-16 14:10:54 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-04-16 14:10:54 +0000 |
commit | 7c1f17b994ca987df2167101054f523cc33d7fb9 (patch) | |
tree | 19c74ddb0973e84fb6c2b31493efa4847a7b4f44 /OpenSim/Region/Environment/Scenes/Scene.cs | |
parent | After reading Timer.cs in the mono source, I'm not (diff) | |
download | opensim-SC_OLD-7c1f17b994ca987df2167101054f523cc33d7fb9.zip opensim-SC_OLD-7c1f17b994ca987df2167101054f523cc33d7fb9.tar.gz opensim-SC_OLD-7c1f17b994ca987df2167101054f523cc33d7fb9.tar.bz2 opensim-SC_OLD-7c1f17b994ca987df2167101054f523cc33d7fb9.tar.xz |
* Applying melanie's Landmark patch. Thanks Melanie!
* To make a landmark, you currently have to enable admin options in the advanced menu first. We're working on this.. however use the admin options solution in the mean time.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Scene.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index 464926d..08cf3d8 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs | |||
@@ -1518,6 +1518,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
1518 | client.OnRequestMapBlocks += RequestMapBlocks; | 1518 | client.OnRequestMapBlocks += RequestMapBlocks; |
1519 | client.OnUpdatePrimTexture += m_innerScene.UpdatePrimTexture; | 1519 | client.OnUpdatePrimTexture += m_innerScene.UpdatePrimTexture; |
1520 | client.OnTeleportLocationRequest += RequestTeleportLocation; | 1520 | client.OnTeleportLocationRequest += RequestTeleportLocation; |
1521 | client.OnTeleportLandmarkRequest += RequestTeleportLandmark; | ||
1521 | client.OnObjectSelect += SelectPrim; | 1522 | client.OnObjectSelect += SelectPrim; |
1522 | client.OnObjectDeselect += DeselectPrim; | 1523 | client.OnObjectDeselect += DeselectPrim; |
1523 | client.OnGrabUpdate += m_innerScene.MoveObject; | 1524 | client.OnGrabUpdate += m_innerScene.MoveObject; |
@@ -2082,6 +2083,21 @@ namespace OpenSim.Region.Environment.Scenes | |||
2082 | } | 2083 | } |
2083 | 2084 | ||
2084 | /// <summary> | 2085 | /// <summary> |
2086 | /// Tries to teleport agent to landmark. | ||
2087 | /// </summary> | ||
2088 | /// <param name="remoteClient"></param> | ||
2089 | /// <param name="regionHandle"></param> | ||
2090 | /// <param name="position"></param> | ||
2091 | public void RequestTeleportLandmark(IClientAPI remoteClient, ulong regionHandle, LLVector3 position) | ||
2092 | { | ||
2093 | if (m_scenePresences.ContainsKey(remoteClient.AgentId)) | ||
2094 | { | ||
2095 | m_sceneGridService.RequestTeleportToLocation(m_scenePresences[remoteClient.AgentId], regionHandle, | ||
2096 | position, LLVector3.Zero, 0); | ||
2097 | } | ||
2098 | } | ||
2099 | |||
2100 | /// <summary> | ||
2085 | /// Agent is crossing the border into a neighbouring region. Tell the neighbour about it! | 2101 | /// Agent is crossing the border into a neighbouring region. Tell the neighbour about it! |
2086 | /// </summary> | 2102 | /// </summary> |
2087 | /// <param name="regionHandle"></param> | 2103 | /// <param name="regionHandle"></param> |