aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneBase.cs7
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs14
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs19
3 files changed, 21 insertions, 19 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneBase.cs b/OpenSim/Region/Framework/Scenes/SceneBase.cs
index 4208669..0445268 100644
--- a/OpenSim/Region/Framework/Scenes/SceneBase.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneBase.cs
@@ -213,7 +213,12 @@ namespace OpenSim.Region.Framework.Scenes
213 /// <param name="RemoteClient">Client to send to</param> 213 /// <param name="RemoteClient">Client to send to</param>
214 public virtual void SendLayerData(IClientAPI RemoteClient) 214 public virtual void SendLayerData(IClientAPI RemoteClient)
215 { 215 {
216 RemoteClient.SendLayerData(Heightmap.GetFloatsSerialised()); 216 // RemoteClient.SendLayerData(Heightmap.GetFloatsSerialised());
217 ITerrainModule terrModule = RequestModuleInterface<ITerrainModule>();
218 if (terrModule != null)
219 {
220 terrModule.PushTerrain(RemoteClient);
221 }
217 } 222 }
218 223
219 #endregion 224 #endregion
diff --git a/OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs b/OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs
index c873e40..45c3348 100644
--- a/OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs
@@ -52,6 +52,7 @@ namespace OpenSim.Region.Framework.Scenes
52 public class SceneCommunicationService //one instance per region 52 public class SceneCommunicationService //one instance per region
53 { 53 {
54 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 54 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
55 private static string LogHeader = "[SCENE COMMUNIATION SERVICE]";
55 56
56 protected RegionInfo m_regionInfo; 57 protected RegionInfo m_regionInfo;
57 protected Scene m_scene; 58 protected Scene m_scene;
@@ -84,15 +85,12 @@ namespace OpenSim.Region.Framework.Scenes
84 if (neighbourService != null) 85 if (neighbourService != null)
85 neighbour = neighbourService.HelloNeighbour(regionhandle, region); 86 neighbour = neighbourService.HelloNeighbour(regionhandle, region);
86 else 87 else
87 m_log.DebugFormat( 88 m_log.DebugFormat( "{0} neighbour service provided for region {0} to inform neigbhours of status", LogHeader, m_scene.Name);
88 "[SCENE COMMUNICATION SERVICE]: No neighbour service provided for region {0} to inform neigbhours of status",
89 m_scene.Name);
90 89
91 if (neighbour != null) 90 if (neighbour != null)
92 { 91 {
93 m_log.DebugFormat( 92 m_log.DebugFormat( "{0} Region {1} successfully informed neighbour {2} at {3}-{4} that it is up",
94 "[SCENE COMMUNICATION SERVICE]: Region {0} successfully informed neighbour {1} at {2}-{3} that it is up", 93 LogHeader, m_scene.Name, neighbour.RegionName, Util.WorldToRegionLoc(x), Util.WorldToRegionLoc(y));
95 m_scene.Name, neighbour.RegionName, Util.WorldToRegionLoc(x), Util.WorldToRegionLoc(y));
96 94
97 m_scene.EventManager.TriggerOnRegionUp(neighbour); 95 m_scene.EventManager.TriggerOnRegionUp(neighbour);
98 } 96 }
@@ -111,9 +109,7 @@ namespace OpenSim.Region.Framework.Scenes
111 List<GridRegion> neighbours 109 List<GridRegion> neighbours
112 = m_scene.GridService.GetNeighbours(m_scene.RegionInfo.ScopeID, m_scene.RegionInfo.RegionID); 110 = m_scene.GridService.GetNeighbours(m_scene.RegionInfo.ScopeID, m_scene.RegionInfo.RegionID);
113 111
114 m_log.DebugFormat( 112 m_log.DebugFormat("{0} Informing {1} neighbours that region {2} is up", LogHeader, neighbours.Count, m_scene.Name);
115 "[SCENE COMMUNICATION SERVICE]: Informing {0} neighbours that region {1} is up",
116 neighbours.Count, m_scene.Name);
117 113
118 foreach (GridRegion n in neighbours) 114 foreach (GridRegion n in neighbours)
119 { 115 {
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index 37353c1..063ac73 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -873,7 +873,8 @@ namespace OpenSim.Region.Framework.Scenes
873 m_sendCoarseLocationsMethod = SendCoarseLocationsDefault; 873 m_sendCoarseLocationsMethod = SendCoarseLocationsDefault;
874 Animator = new ScenePresenceAnimator(this); 874 Animator = new ScenePresenceAnimator(this);
875 PresenceType = type; 875 PresenceType = type;
876 DrawDistance = world.DefaultDrawDistance; 876 // DrawDistance = world.DefaultDrawDistance;
877 DrawDistance = Constants.RegionSize;
877 RegionHandle = world.RegionInfo.RegionHandle; 878 RegionHandle = world.RegionInfo.RegionHandle;
878 ControllingClient = client; 879 ControllingClient = client;
879 Firstname = ControllingClient.FirstName; 880 Firstname = ControllingClient.FirstName;
@@ -1918,8 +1919,8 @@ namespace OpenSim.Region.Framework.Scenes
1918 // When we get to the point of re-computing neighbors everytime this 1919 // When we get to the point of re-computing neighbors everytime this
1919 // changes, then start using the agent's drawdistance rather than the 1920 // changes, then start using the agent's drawdistance rather than the
1920 // region's draw distance. 1921 // region's draw distance.
1921 // DrawDistance = agentData.Far; 1922 DrawDistance = agentData.Far;
1922 DrawDistance = Scene.DefaultDrawDistance; 1923 // DrawDistance = Scene.DefaultDrawDistance;
1923 1924
1924 m_mouseLook = (flags & AgentManager.ControlFlags.AGENT_CONTROL_MOUSELOOK) != 0; 1925 m_mouseLook = (flags & AgentManager.ControlFlags.AGENT_CONTROL_MOUSELOOK) != 0;
1925 m_leftButtonDown = (flags & AgentManager.ControlFlags.AGENT_CONTROL_LBUTTON_DOWN) != 0; 1926 m_leftButtonDown = (flags & AgentManager.ControlFlags.AGENT_CONTROL_LBUTTON_DOWN) != 0;
@@ -2277,8 +2278,8 @@ namespace OpenSim.Region.Framework.Scenes
2277 // When we get to the point of re-computing neighbors everytime this 2278 // When we get to the point of re-computing neighbors everytime this
2278 // changes, then start using the agent's drawdistance rather than the 2279 // changes, then start using the agent's drawdistance rather than the
2279 // region's draw distance. 2280 // region's draw distance.
2280 // DrawDistance = agentData.Far; 2281 DrawDistance = agentData.Far;
2281 DrawDistance = Scene.DefaultDrawDistance; 2282 // DrawDistance = Scene.DefaultDrawDistance;
2282 2283
2283 // Check if Client has camera in 'follow cam' or 'build' mode. 2284 // Check if Client has camera in 'follow cam' or 'build' mode.
2284 Vector3 camdif = (Vector3.One * Rotation - Vector3.One * CameraRotation); 2285 Vector3 camdif = (Vector3.One * Rotation - Vector3.One * CameraRotation);
@@ -3824,8 +3825,8 @@ namespace OpenSim.Region.Framework.Scenes
3824 // When we get to the point of re-computing neighbors everytime this 3825 // When we get to the point of re-computing neighbors everytime this
3825 // changes, then start using the agent's drawdistance rather than the 3826 // changes, then start using the agent's drawdistance rather than the
3826 // region's draw distance. 3827 // region's draw distance.
3827 // DrawDistance = cAgentData.Far; 3828 DrawDistance = cAgentData.Far;
3828 DrawDistance = Scene.DefaultDrawDistance; 3829 // DrawDistance = Scene.DefaultDrawDistance;
3829 3830
3830 if (cAgentData.Position != marker) // UGH!! 3831 if (cAgentData.Position != marker) // UGH!!
3831 m_pos = cAgentData.Position + offset; 3832 m_pos = cAgentData.Position + offset;
@@ -3935,8 +3936,8 @@ namespace OpenSim.Region.Framework.Scenes
3935 // When we get to the point of re-computing neighbors everytime this 3936 // When we get to the point of re-computing neighbors everytime this
3936 // changes, then start using the agent's drawdistance rather than the 3937 // changes, then start using the agent's drawdistance rather than the
3937 // region's draw distance. 3938 // region's draw distance.
3938 // DrawDistance = cAgent.Far; 3939 DrawDistance = cAgent.Far;
3939 DrawDistance = Scene.DefaultDrawDistance; 3940 // DrawDistance = Scene.DefaultDrawDistance;
3940 3941
3941 if ((cAgent.Throttles != null) && cAgent.Throttles.Length > 0) 3942 if ((cAgent.Throttles != null) && cAgent.Throttles.Length > 0)
3942 ControllingClient.SetChildAgentThrottle(cAgent.Throttles); 3943 ControllingClient.SetChildAgentThrottle(cAgent.Throttles);