MainMap workaround. Map still does not fill in automatically, but one click on map should return a decent portion of it.

afrisby
Brian McBee 2007-11-26 16:40:08 +00:00
parent 232613638f
commit 959084f885
1 changed files with 9 additions and 1 deletions

View File

@ -201,7 +201,15 @@ namespace OpenSim.Region.Environment.Scenes
public virtual void RequestMapBlocks(IClientAPI remoteClient, int minX, int minY, int maxX, int maxY)
{
List<MapBlockData> mapBlocks;
mapBlocks = m_commsProvider.GridService.RequestNeighbourMapBlocks(minX, minY, maxX, maxY);
mapBlocks = m_commsProvider.GridService.RequestNeighbourMapBlocks(minX-2, minY-2, minX+2, minY+2);
remoteClient.SendMapBlock(mapBlocks);
mapBlocks = m_commsProvider.GridService.RequestNeighbourMapBlocks(minX - 2, minY +3, minX +5, minY +5);
remoteClient.SendMapBlock(mapBlocks);
mapBlocks = m_commsProvider.GridService.RequestNeighbourMapBlocks(minX +3, minY -5, minX + 5, minY + 2);
remoteClient.SendMapBlock(mapBlocks);
mapBlocks = m_commsProvider.GridService.RequestNeighbourMapBlocks(minX -5, minY - 5, minX + 2, minY -3);
remoteClient.SendMapBlock(mapBlocks);
mapBlocks = m_commsProvider.GridService.RequestNeighbourMapBlocks(minX - 5, minY - 2, minX -3, minY + 5);
remoteClient.SendMapBlock(mapBlocks);
}