aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/World/WorldMap/MapSearchModule.cs
diff options
context:
space:
mode:
authorDiva Canto2011-05-08 22:50:04 -0700
committerDiva Canto2011-05-08 22:50:04 -0700
commitc0a69bfaab2f945f2f871ce6b93c81931ffc2f9a (patch)
tree4176bc1838bf7fde5c914805dd7c6fbcc10f1b3d /OpenSim/Region/CoreModules/World/WorldMap/MapSearchModule.cs
parentConvert the prim count module into a permissionsmodule (diff)
downloadopensim-SC_OLD-c0a69bfaab2f945f2f871ce6b93c81931ffc2f9a.zip
opensim-SC_OLD-c0a69bfaab2f945f2f871ce6b93c81931ffc2f9a.tar.gz
opensim-SC_OLD-c0a69bfaab2f945f2f871ce6b93c81931ffc2f9a.tar.bz2
opensim-SC_OLD-c0a69bfaab2f945f2f871ce6b93c81931ffc2f9a.tar.xz
The map is seriously broken. This doesn't fix it, but at least provides one more piece of data that seems to be required -- agent flags, which seem to be different in Viewer 2. WARNING: changes IClientAPI.
Diffstat (limited to 'OpenSim/Region/CoreModules/World/WorldMap/MapSearchModule.cs')
-rw-r--r--OpenSim/Region/CoreModules/World/WorldMap/MapSearchModule.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Region/CoreModules/World/WorldMap/MapSearchModule.cs b/OpenSim/Region/CoreModules/World/WorldMap/MapSearchModule.cs
index f9ef286..c059a5f 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 < 3) 89 if (mapName.Length < 3)
90 { 90 {
@@ -139,9 +139,9 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
139 data.Y = 0; 139 data.Y = 0;
140 blocks.Add(data); 140 blocks.Add(data);
141 141
142 // not sure what the flags do here, but seems to be necessary 142 // flags are agent flags sent from the viewer.
143 // to set to "2" for viewer 2 143 // they have different values depending on different viewers, apparently
144 remoteClient.SendMapBlock(blocks, 2); 144 remoteClient.SendMapBlock(blocks, flags);
145 } 145 }
146 146
147// private Scene GetClientScene(IClientAPI client) 147// private Scene GetClientScene(IClientAPI client)