do not send parceloverlay on crossings (may be bad, or not)

0.9.1.0-post-fixes
UbitUmarov 2019-03-19 06:38:43 +00:00
parent 1c6be0fae3
commit 182977a872
5 changed files with 12 additions and 10 deletions

View File

@ -98,6 +98,6 @@ namespace OpenSim.Region.Framework.Interfaces
void Join(int start_x, int start_y, int end_x, int end_y, UUID attempting_user_id);
void Subdivide(int start_x, int start_y, int end_x, int end_y, UUID attempting_user_id);
void sendClientInitialLandInfo(IClientAPI remoteClient);
void sendClientInitialLandInfo(IClientAPI remoteClient, bool overlay = true);
}
}

View File

@ -247,11 +247,11 @@ namespace OpenSim.Region.CoreModules.World.Land
m_landManagementModule.setParcelOtherCleanTime(remoteClient, localID, otherCleanTime);
}
}
public void sendClientInitialLandInfo(IClientAPI remoteClient)
public void sendClientInitialLandInfo(IClientAPI remoteClient, bool overlay = true)
{
if (m_landManagementModule != null)
{
m_landManagementModule.sendClientInitialLandInfo(remoteClient);
m_landManagementModule.sendClientInitialLandInfo(remoteClient, overlay);
}
}
#endregion

View File

@ -491,7 +491,7 @@ namespace OpenSim.Region.CoreModules.World.Land
return;
}
public void sendClientInitialLandInfo(IClientAPI remoteClient)
public void sendClientInitialLandInfo(IClientAPI remoteClient, bool overlay = true)
{
ScenePresence avatar;
@ -507,6 +507,7 @@ namespace OpenSim.Region.CoreModules.World.Land
avatar.currentParcelUUID = over.LandData.GlobalID;
over.SendLandUpdateToClient(avatar.ControllingClient);
}
if(overlay)
SendParcelOverlay(remoteClient);
}

View File

@ -2244,11 +2244,12 @@ namespace OpenSim.Region.Framework.Scenes
// start sending terrain patchs
if (!gotCrossUpdate)
Scene.SendLayerData(ControllingClient);
}
// send initial land overlay and parcel
ILandChannel landch = m_scene.LandChannel;
if (landch != null)
landch.sendClientInitialLandInfo(client);
landch.sendClientInitialLandInfo(client, !gotCrossUpdate);
}
if (!IsChildAgent)
{

View File

@ -119,6 +119,6 @@ namespace OpenSim.Tests.Common
public void Join(int start_x, int start_y, int end_x, int end_y, UUID attempting_user_id) {}
public void Subdivide(int start_x, int start_y, int end_x, int end_y, UUID attempting_user_id) {}
public void sendClientInitialLandInfo(IClientAPI remoteClient) { }
public void sendClientInitialLandInfo(IClientAPI remoteClient, bool overlay = true) { }
}
}