mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
A few bug fixes on map V2. Zoom level weirdness still there.
This commit is contained in:
@@ -836,7 +836,10 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
|
||||
block.Access = 254; // means 'simulator is offline'
|
||||
response.Add(block);
|
||||
}
|
||||
remoteClient.SendMapBlock(response, 0);
|
||||
if ((flag & 2) == 2) // V2 !!!
|
||||
remoteClient.SendMapBlock(response, 2);
|
||||
else
|
||||
remoteClient.SendMapBlock(response, 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -849,17 +852,20 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
|
||||
{
|
||||
List<MapBlockData> mapBlocks = new List<MapBlockData>();
|
||||
List<GridRegion> regions = m_scene.GridService.GetRegionRange(m_scene.RegionInfo.ScopeID,
|
||||
(minX - 8) * (int)Constants.RegionSize,
|
||||
(maxX + 8) * (int)Constants.RegionSize,
|
||||
(minY - 8) * (int)Constants.RegionSize,
|
||||
(maxY + 8) * (int)Constants.RegionSize);
|
||||
(minX - 4) * (int)Constants.RegionSize,
|
||||
(maxX + 4) * (int)Constants.RegionSize,
|
||||
(minY - 4) * (int)Constants.RegionSize,
|
||||
(maxY + 4) * (int)Constants.RegionSize);
|
||||
foreach (GridRegion r in regions)
|
||||
{
|
||||
MapBlockData block = new MapBlockData();
|
||||
MapBlockFromGridRegion(block, r);
|
||||
mapBlocks.Add(block);
|
||||
}
|
||||
remoteClient.SendMapBlock(mapBlocks, 0);
|
||||
if ((flag & 2) == 2) // V2 !!!
|
||||
remoteClient.SendMapBlock(mapBlocks, 2);
|
||||
else
|
||||
remoteClient.SendMapBlock(mapBlocks, 0);
|
||||
|
||||
return mapBlocks;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user