From 959084f8859bbf68cac9b245f59addafacc66a27 Mon Sep 17 00:00:00 2001 From: Brian McBee Date: Mon, 26 Nov 2007 16:40:08 +0000 Subject: MainMap workaround. Map still does not fill in automatically, but one click on map should return a decent portion of it. --- OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/Environment') diff --git a/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs b/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs index ae44acb..18ce34d 100644 --- a/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs +++ b/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs @@ -201,7 +201,15 @@ namespace OpenSim.Region.Environment.Scenes public virtual void RequestMapBlocks(IClientAPI remoteClient, int minX, int minY, int maxX, int maxY) { List 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); } -- cgit v1.1