added the flag param to IClientAPI.SendMapBlock
parent
35e1a2fdfc
commit
cf1cf73839
|
@ -869,7 +869,7 @@ namespace OpenSim.Framework
|
|||
void CrossRegion(ulong newRegionHandle, LLVector3 pos, LLVector3 lookAt, IPEndPoint newRegionExternalEndPoint,
|
||||
string capsURL);
|
||||
|
||||
void SendMapBlock(List<MapBlockData> mapBlocks);
|
||||
void SendMapBlock(List<MapBlockData> mapBlocks, uint flag);
|
||||
void SendLocalTeleport(LLVector3 position, LLVector3 lookAt, uint flags);
|
||||
|
||||
void SendRegionTeleport(ulong regionHandle, byte simAccess, IPEndPoint regionExternalEndPoint, uint locationID,
|
||||
|
|
|
@ -1211,7 +1211,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
OutPacket(newSimPack, ThrottleOutPacketType.Unknown);
|
||||
}
|
||||
|
||||
internal void SendMapBlockSplit(List<MapBlockData> mapBlocks)
|
||||
internal void SendMapBlockSplit(List<MapBlockData> mapBlocks, uint flag)
|
||||
{
|
||||
MapBlockReplyPacket mapReply = (MapBlockReplyPacket)PacketPool.Instance.GetPacket(PacketType.MapBlockReply);
|
||||
// TODO: don't create new blocks if recycling an old packet
|
||||
|
@ -1220,7 +1220,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
|
||||
mapReply.AgentData.AgentID = AgentId;
|
||||
mapReply.Data = new MapBlockReplyPacket.DataBlock[mapBlocks2.Length];
|
||||
mapReply.AgentData.Flags = 0;
|
||||
mapReply.AgentData.Flags = flag;
|
||||
|
||||
for (int i = 0; i < mapBlocks2.Length; i++)
|
||||
{
|
||||
|
@ -1238,7 +1238,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
OutPacket(mapReply, ThrottleOutPacketType.Land);
|
||||
}
|
||||
|
||||
public void SendMapBlock(List<MapBlockData> mapBlocks)
|
||||
public void SendMapBlock(List<MapBlockData> mapBlocks, uint flag)
|
||||
{
|
||||
|
||||
MapBlockData[] mapBlocks2 = mapBlocks.ToArray();
|
||||
|
@ -1254,7 +1254,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
sendingBlocks.Add(mapBlocks2[i]);
|
||||
if (((i + 1) == mapBlocks2.Length) || ((i % maxsend) == 0))
|
||||
{
|
||||
SendMapBlockSplit(sendingBlocks);
|
||||
SendMapBlockSplit(sendingBlocks, flag);
|
||||
sendingBlocks = new List<MapBlockData>();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -452,7 +452,7 @@ namespace OpenSim.Region.Environment.Modules.World.NPC
|
|||
{
|
||||
}
|
||||
|
||||
public virtual void SendMapBlock(List<MapBlockData> mapBlocks)
|
||||
public virtual void SendMapBlock(List<MapBlockData> mapBlocks, uint flag)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -155,7 +155,7 @@ namespace OpenSim.Region.Environment.Modules.World.WorldMap
|
|||
List<MapBlockData> mapBlocks;
|
||||
|
||||
mapBlocks = cachedMapBlocks;
|
||||
avatarPresence.ControllingClient.SendMapBlock(mapBlocks);
|
||||
avatarPresence.ControllingClient.SendMapBlock(mapBlocks, 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -167,7 +167,7 @@ namespace OpenSim.Region.Environment.Modules.World.WorldMap
|
|||
List<MapBlockData> mapBlocks;
|
||||
|
||||
mapBlocks = m_scene.SceneGridService.RequestNeighbourMapBlocks((int)m_scene.RegionInfo.RegionLocX - 8, (int)m_scene.RegionInfo.RegionLocY - 8, (int)m_scene.RegionInfo.RegionLocX + 8, (int)m_scene.RegionInfo.RegionLocY + 8);
|
||||
avatarPresence.ControllingClient.SendMapBlock(mapBlocks);
|
||||
avatarPresence.ControllingClient.SendMapBlock(mapBlocks,0);
|
||||
|
||||
lock (cachedMapBlocks)
|
||||
cachedMapBlocks = mapBlocks;
|
||||
|
@ -245,7 +245,7 @@ namespace OpenSim.Region.Environment.Modules.World.WorldMap
|
|||
{
|
||||
List<MapBlockData> mapBlocks;
|
||||
mapBlocks = m_scene.SceneGridService.RequestNeighbourMapBlocks(minX - 4, minY - 4, minX + 4, minY + 4);
|
||||
remoteClient.SendMapBlock(mapBlocks);
|
||||
remoteClient.SendMapBlock(mapBlocks, flag);
|
||||
}
|
||||
|
||||
public Hashtable OnHTTPGetMapImage(Hashtable keysvals)
|
||||
|
|
|
@ -542,7 +542,7 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
{
|
||||
List<MapBlockData> mapBlocks;
|
||||
mapBlocks = m_commsProvider.GridService.RequestNeighbourMapBlocks(minX - 4, minY - 4, minX + 4, minY + 4);
|
||||
remoteClient.SendMapBlock(mapBlocks);
|
||||
remoteClient.SendMapBlock(mapBlocks, 0);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -366,7 +366,7 @@ namespace OpenSim.Region.Examples.SimpleModule
|
|||
{
|
||||
}
|
||||
|
||||
public virtual void SendMapBlock(List<MapBlockData> mapBlocks)
|
||||
public virtual void SendMapBlock(List<MapBlockData> mapBlocks, uint flag)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue