aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs
diff options
context:
space:
mode:
authorDiva Canto2011-06-10 17:22:17 -0700
committerDiva Canto2011-06-10 17:22:17 -0700
commit487cb51f69ac2f713797de03eb26a4b53afcfade (patch)
treefae27918edd3de1e5098e3f79d5f474c77ba730e /OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs
parentIf the flotsam asset cache console command "fcache clear" is specified on its... (diff)
downloadopensim-SC_OLD-487cb51f69ac2f713797de03eb26a4b53afcfade.zip
opensim-SC_OLD-487cb51f69ac2f713797de03eb26a4b53afcfade.tar.gz
opensim-SC_OLD-487cb51f69ac2f713797de03eb26a4b53afcfade.tar.bz2
opensim-SC_OLD-487cb51f69ac2f713797de03eb26a4b53afcfade.tar.xz
3rd way of reseting the HG Map. This time, don't use the grid service; instead keep track of which map blocks each client has seen in the region, and reset exactly those when the client closes.
Diffstat (limited to 'OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs')
-rw-r--r--OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs b/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs
index 69d3005..3553c9a 100644
--- a/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs
+++ b/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs
@@ -845,7 +845,7 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
845 } 845 }
846 } 846 }
847 847
848 protected virtual void GetAndSendBlocks(IClientAPI remoteClient, int minX, int minY, int maxX, int maxY, uint flag) 848 protected virtual List<MapBlockData> GetAndSendBlocks(IClientAPI remoteClient, int minX, int minY, int maxX, int maxY, uint flag)
849 { 849 {
850 List<MapBlockData> mapBlocks = new List<MapBlockData>(); 850 List<MapBlockData> mapBlocks = new List<MapBlockData>();
851 List<GridRegion> regions = m_scene.GridService.GetRegionRange(m_scene.RegionInfo.ScopeID, 851 List<GridRegion> regions = m_scene.GridService.GetRegionRange(m_scene.RegionInfo.ScopeID,
@@ -860,6 +860,8 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
860 mapBlocks.Add(block); 860 mapBlocks.Add(block);
861 } 861 }
862 remoteClient.SendMapBlock(mapBlocks, 0); 862 remoteClient.SendMapBlock(mapBlocks, 0);
863
864 return mapBlocks;
863 } 865 }
864 866
865 protected void MapBlockFromGridRegion(MapBlockData block, GridRegion r) 867 protected void MapBlockFromGridRegion(MapBlockData block, GridRegion r)