diff options
author | UbitUmarov | 2019-03-19 06:38:43 +0000 |
---|---|---|
committer | UbitUmarov | 2019-03-19 06:38:43 +0000 |
commit | 182977a872f837a29f936964d8df55942187261a (patch) | |
tree | 54fc103bb5ac6f504942e491b62a006c26935957 /OpenSim | |
parent | ooops (diff) | |
download | opensim-SC-182977a872f837a29f936964d8df55942187261a.zip opensim-SC-182977a872f837a29f936964d8df55942187261a.tar.gz opensim-SC-182977a872f837a29f936964d8df55942187261a.tar.bz2 opensim-SC-182977a872f837a29f936964d8df55942187261a.tar.xz |
do not send parceloverlay on crossings (may be bad, or not)
Diffstat (limited to 'OpenSim')
5 files changed, 12 insertions, 10 deletions
diff --git a/OpenSim/Framework/ILandChannel.cs b/OpenSim/Framework/ILandChannel.cs index e5ea596..0efd908 100644 --- a/OpenSim/Framework/ILandChannel.cs +++ b/OpenSim/Framework/ILandChannel.cs | |||
@@ -98,6 +98,6 @@ namespace OpenSim.Region.Framework.Interfaces | |||
98 | 98 | ||
99 | void Join(int start_x, int start_y, int end_x, int end_y, UUID attempting_user_id); | 99 | void Join(int start_x, int start_y, int end_x, int end_y, UUID attempting_user_id); |
100 | void Subdivide(int start_x, int start_y, int end_x, int end_y, UUID attempting_user_id); | 100 | void Subdivide(int start_x, int start_y, int end_x, int end_y, UUID attempting_user_id); |
101 | void sendClientInitialLandInfo(IClientAPI remoteClient); | 101 | void sendClientInitialLandInfo(IClientAPI remoteClient, bool overlay = true); |
102 | } | 102 | } |
103 | } | 103 | } |
diff --git a/OpenSim/Region/CoreModules/World/Land/LandChannel.cs b/OpenSim/Region/CoreModules/World/Land/LandChannel.cs index 993b782..eaa5292 100644 --- a/OpenSim/Region/CoreModules/World/Land/LandChannel.cs +++ b/OpenSim/Region/CoreModules/World/Land/LandChannel.cs | |||
@@ -247,11 +247,11 @@ namespace OpenSim.Region.CoreModules.World.Land | |||
247 | m_landManagementModule.setParcelOtherCleanTime(remoteClient, localID, otherCleanTime); | 247 | m_landManagementModule.setParcelOtherCleanTime(remoteClient, localID, otherCleanTime); |
248 | } | 248 | } |
249 | } | 249 | } |
250 | public void sendClientInitialLandInfo(IClientAPI remoteClient) | 250 | public void sendClientInitialLandInfo(IClientAPI remoteClient, bool overlay = true) |
251 | { | 251 | { |
252 | if (m_landManagementModule != null) | 252 | if (m_landManagementModule != null) |
253 | { | 253 | { |
254 | m_landManagementModule.sendClientInitialLandInfo(remoteClient); | 254 | m_landManagementModule.sendClientInitialLandInfo(remoteClient, overlay); |
255 | } | 255 | } |
256 | } | 256 | } |
257 | #endregion | 257 | #endregion |
diff --git a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs index d693d21..c7b45ef 100644 --- a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs +++ b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs | |||
@@ -491,7 +491,7 @@ namespace OpenSim.Region.CoreModules.World.Land | |||
491 | return; | 491 | return; |
492 | } | 492 | } |
493 | 493 | ||
494 | public void sendClientInitialLandInfo(IClientAPI remoteClient) | 494 | public void sendClientInitialLandInfo(IClientAPI remoteClient, bool overlay = true) |
495 | { | 495 | { |
496 | ScenePresence avatar; | 496 | ScenePresence avatar; |
497 | 497 | ||
@@ -507,7 +507,8 @@ namespace OpenSim.Region.CoreModules.World.Land | |||
507 | avatar.currentParcelUUID = over.LandData.GlobalID; | 507 | avatar.currentParcelUUID = over.LandData.GlobalID; |
508 | over.SendLandUpdateToClient(avatar.ControllingClient); | 508 | over.SendLandUpdateToClient(avatar.ControllingClient); |
509 | } | 509 | } |
510 | SendParcelOverlay(remoteClient); | 510 | if(overlay) |
511 | SendParcelOverlay(remoteClient); | ||
511 | } | 512 | } |
512 | 513 | ||
513 | public void SendLandUpdate(ScenePresence avatar, ILandObject over) | 514 | public void SendLandUpdate(ScenePresence avatar, ILandObject over) |
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index e663055..a67d701 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -2244,11 +2244,12 @@ namespace OpenSim.Region.Framework.Scenes | |||
2244 | // start sending terrain patchs | 2244 | // start sending terrain patchs |
2245 | if (!gotCrossUpdate) | 2245 | if (!gotCrossUpdate) |
2246 | Scene.SendLayerData(ControllingClient); | 2246 | Scene.SendLayerData(ControllingClient); |
2247 | |||
2248 | // send initial land overlay and parcel | ||
2249 | ILandChannel landch = m_scene.LandChannel; | ||
2250 | if (landch != null) | ||
2251 | landch.sendClientInitialLandInfo(client, !gotCrossUpdate); | ||
2247 | } | 2252 | } |
2248 | // send initial land overlay and parcel | ||
2249 | ILandChannel landch = m_scene.LandChannel; | ||
2250 | if (landch != null) | ||
2251 | landch.sendClientInitialLandInfo(client); | ||
2252 | 2253 | ||
2253 | if (!IsChildAgent) | 2254 | if (!IsChildAgent) |
2254 | { | 2255 | { |
diff --git a/OpenSim/Tests/Common/Mock/TestLandChannel.cs b/OpenSim/Tests/Common/Mock/TestLandChannel.cs index cb16f55..87cbede 100644 --- a/OpenSim/Tests/Common/Mock/TestLandChannel.cs +++ b/OpenSim/Tests/Common/Mock/TestLandChannel.cs | |||
@@ -119,6 +119,6 @@ namespace OpenSim.Tests.Common | |||
119 | 119 | ||
120 | public void Join(int start_x, int start_y, int end_x, int end_y, UUID attempting_user_id) {} | 120 | public void Join(int start_x, int start_y, int end_x, int end_y, UUID attempting_user_id) {} |
121 | public void Subdivide(int start_x, int start_y, int end_x, int end_y, UUID attempting_user_id) {} | 121 | public void Subdivide(int start_x, int start_y, int end_x, int end_y, UUID attempting_user_id) {} |
122 | public void sendClientInitialLandInfo(IClientAPI remoteClient) { } | 122 | public void sendClientInitialLandInfo(IClientAPI remoteClient, bool overlay = true) { } |
123 | } | 123 | } |
124 | } \ No newline at end of file | 124 | } \ No newline at end of file |