aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules
diff options
context:
space:
mode:
authorMelanie2011-05-09 18:37:35 +0100
committerMelanie2011-05-09 18:37:35 +0100
commit1bd949614a927f32b7194ecefaeb74fdd46cab4f (patch)
tree8974bd63062468b776c2a8de31d3de5a8ff3ea69 /OpenSim/Region/CoreModules
parentMerge branch 'master' into careminster-presence-refactor (diff)
parentFixes gray tiles on map search for viewers 1. (diff)
downloadopensim-SC_OLD-1bd949614a927f32b7194ecefaeb74fdd46cab4f.zip
opensim-SC_OLD-1bd949614a927f32b7194ecefaeb74fdd46cab4f.tar.gz
opensim-SC_OLD-1bd949614a927f32b7194ecefaeb74fdd46cab4f.tar.bz2
opensim-SC_OLD-1bd949614a927f32b7194ecefaeb74fdd46cab4f.tar.xz
Merge branch 'master' into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r--OpenSim/Region/CoreModules/World/WorldMap/MapSearchModule.cs11
-rw-r--r--OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs7
2 files changed, 12 insertions, 6 deletions
diff --git a/OpenSim/Region/CoreModules/World/WorldMap/MapSearchModule.cs b/OpenSim/Region/CoreModules/World/WorldMap/MapSearchModule.cs
index d0aa53e..56c59bd 100644
--- a/OpenSim/Region/CoreModules/World/WorldMap/MapSearchModule.cs
+++ b/OpenSim/Region/CoreModules/World/WorldMap/MapSearchModule.cs
@@ -84,7 +84,7 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
84 client.OnMapNameRequest += OnMapNameRequest; 84 client.OnMapNameRequest += OnMapNameRequest;
85 } 85 }
86 86
87 private void OnMapNameRequest(IClientAPI remoteClient, string mapName) 87 private void OnMapNameRequest(IClientAPI remoteClient, string mapName, uint flags)
88 { 88 {
89 if (mapName.Length < 2) 89 if (mapName.Length < 2)
90 { 90 {
@@ -117,7 +117,10 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
117 data = new MapBlockData(); 117 data = new MapBlockData();
118 data.Agents = 0; 118 data.Agents = 0;
119 data.Access = info.Access; 119 data.Access = info.Access;
120 data.MapImageId = UUID.Zero; // could use info.TerrainImage but it seems to break viewer2 120 if (flags == 2) // V2 sends this
121 data.MapImageId = UUID.Zero;
122 else
123 data.MapImageId = info.TerrainImage;
121 data.Name = info.RegionName; 124 data.Name = info.RegionName;
122 data.RegionFlags = 0; // TODO not used? 125 data.RegionFlags = 0; // TODO not used?
123 data.WaterHeight = 0; // not used 126 data.WaterHeight = 0; // not used
@@ -139,7 +142,9 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
139 data.Y = 0; 142 data.Y = 0;
140 blocks.Add(data); 143 blocks.Add(data);
141 144
142 remoteClient.SendMapBlock(blocks, 2); 145 // flags are agent flags sent from the viewer.
146 // they have different values depending on different viewers, apparently
147 remoteClient.SendMapBlock(blocks, flags);
143 } 148 }
144 149
145// private Scene GetClientScene(IClientAPI client) 150// private Scene GetClientScene(IClientAPI client)
diff --git a/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs b/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs
index b05aef8..fe919b7 100644
--- a/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs
+++ b/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs
@@ -205,8 +205,8 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
205 { 205 {
206 //try 206 //try
207 //{ 207 //{
208 //m_log.DebugFormat("[MAPLAYER]: request: {0}, path: {1}, param: {2}, agent:{3}", 208 //m_log.DebugFormat("[MAPLAYER]: path: {0}, param: {1}, agent:{2}",
209 //request, path, param,agentID.ToString()); 209 // path, param, agentID.ToString());
210 210
211 // this is here because CAPS map requests work even beyond the 10,000 limit. 211 // this is here because CAPS map requests work even beyond the 10,000 limit.
212 ScenePresence avatarPresence = null; 212 ScenePresence avatarPresence = null;
@@ -784,7 +784,8 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
784 /// <param name="maxY"></param> 784 /// <param name="maxY"></param>
785 public virtual void RequestMapBlocks(IClientAPI remoteClient, int minX, int minY, int maxX, int maxY, uint flag) 785 public virtual void RequestMapBlocks(IClientAPI remoteClient, int minX, int minY, int maxX, int maxY, uint flag)
786 { 786 {
787 if ((flag & 0x10000) != 0) // user clicked on the map a tile that isn't visible 787 //m_log.ErrorFormat("[YYY] RequestMapBlocks {0}={1}={2}={3} {4}", minX, minY, maxX, maxY, flag);
788 if ((flag & 0x10000) != 0) // user clicked on qthe map a tile that isn't visible
788 { 789 {
789 List<MapBlockData> response = new List<MapBlockData>(); 790 List<MapBlockData> response = new List<MapBlockData>();
790 791