diff options
Diffstat (limited to 'OpenSim/Region/CoreModules/World/WorldMap/MapSearchModule.cs')
-rw-r--r-- | OpenSim/Region/CoreModules/World/WorldMap/MapSearchModule.cs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/OpenSim/Region/CoreModules/World/WorldMap/MapSearchModule.cs b/OpenSim/Region/CoreModules/World/WorldMap/MapSearchModule.cs index 3a0bdc3..7370156 100644 --- a/OpenSim/Region/CoreModules/World/WorldMap/MapSearchModule.cs +++ b/OpenSim/Region/CoreModules/World/WorldMap/MapSearchModule.cs | |||
@@ -147,7 +147,7 @@ namespace OpenSim.Region.CoreModules.World.WorldMap | |||
147 | if (mapName.Length < 3 || (mapName.EndsWith("#") && mapName.Length < 4)) | 147 | if (mapName.Length < 3 || (mapName.EndsWith("#") && mapName.Length < 4)) |
148 | { | 148 | { |
149 | // final block, closing the search result | 149 | // final block, closing the search result |
150 | AddFinalBlock(blocks); | 150 | AddFinalBlock(blocks,mapName); |
151 | 151 | ||
152 | // flags are agent flags sent from the viewer. | 152 | // flags are agent flags sent from the viewer. |
153 | // they have different values depending on different viewers, apparently | 153 | // they have different values depending on different viewers, apparently |
@@ -211,8 +211,7 @@ namespace OpenSim.Region.CoreModules.World.WorldMap | |||
211 | } | 211 | } |
212 | 212 | ||
213 | // final block, closing the search result | 213 | // final block, closing the search result |
214 | if(blocks.Count == 0) | 214 | AddFinalBlock(blocks,mapNameOrig); |
215 | AddFinalBlock(blocks); | ||
216 | 215 | ||
217 | // flags are agent flags sent from the viewer. | 216 | // flags are agent flags sent from the viewer. |
218 | // they have different values depending on different viewers, apparently | 217 | // they have different values depending on different viewers, apparently |
@@ -231,14 +230,14 @@ namespace OpenSim.Region.CoreModules.World.WorldMap | |||
231 | }); | 230 | }); |
232 | } | 231 | } |
233 | 232 | ||
234 | private void AddFinalBlock(List<MapBlockData> blocks) | 233 | private void AddFinalBlock(List<MapBlockData> blocks,string name) |
235 | { | 234 | { |
236 | // final block, closing the search result | 235 | // final block, closing the search result |
237 | MapBlockData data = new MapBlockData(); | 236 | MapBlockData data = new MapBlockData(); |
238 | data.Agents = 0; | 237 | data.Agents = 0; |
239 | data.Access = (byte)SimAccess.NonExistent; | 238 | data.Access = (byte)SimAccess.NonExistent; |
240 | data.MapImageId = UUID.Zero; | 239 | data.MapImageId = UUID.Zero; |
241 | data.Name = ""; | 240 | data.Name = name; |
242 | data.RegionFlags = 0; | 241 | data.RegionFlags = 0; |
243 | data.WaterHeight = 0; // not used | 242 | data.WaterHeight = 0; // not used |
244 | data.X = 0; | 243 | data.X = 0; |