Map search: changed the flag sent to the client. It was 2 (???), now it's 0. This makes HG map tiles work on map search -- a longstanding annoyance. My map search tests were all ok, but since I don't understand these flag values, this may break something related to map search.

viewer-2-initial-appearance
Diva Canto 2011-01-06 12:53:54 -08:00
parent 21dedb573b
commit 81587466e7
1 changed files with 3 additions and 3 deletions

View File

@ -102,7 +102,7 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
GridRegion info = m_scene.GridService.GetRegionByName(m_scene.RegionInfo.ScopeID, mapName); GridRegion info = m_scene.GridService.GetRegionByName(m_scene.RegionInfo.ScopeID, mapName);
if (info != null) regionInfos.Add(info); if (info != null) regionInfos.Add(info);
} }
m_log.DebugFormat("[MAPSEARCHMODULE]: search returned {0} regions", regionInfos.Count);
List<MapBlockData> blocks = new List<MapBlockData>(); List<MapBlockData> blocks = new List<MapBlockData>();
MapBlockData data; MapBlockData data;
@ -128,14 +128,14 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
data.Agents = 0; data.Agents = 0;
data.Access = 255; data.Access = 255;
data.MapImageId = UUID.Zero; data.MapImageId = UUID.Zero;
data.Name = mapName; data.Name = ""; // mapName;
data.RegionFlags = 0; data.RegionFlags = 0;
data.WaterHeight = 0; // not used data.WaterHeight = 0; // not used
data.X = 0; data.X = 0;
data.Y = 0; data.Y = 0;
blocks.Add(data); blocks.Add(data);
remoteClient.SendMapBlock(blocks, 2); remoteClient.SendMapBlock(blocks, 0);
} }
// private Scene GetClientScene(IClientAPI client) // private Scene GetClientScene(IClientAPI client)