From a2d17dfff17f7facfdbe436ca6ad8f630f838751 Mon Sep 17 00:00:00 2001 From: diva Date: Sat, 14 Feb 2009 21:26:20 +0000 Subject: Restores the HGWorldMap functionality that has been reduced since a recent refactoring of the WorldMapModule. --- OpenSim/Region/CoreModules/Hypergrid/HGWorldMapModule.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'OpenSim') diff --git a/OpenSim/Region/CoreModules/Hypergrid/HGWorldMapModule.cs b/OpenSim/Region/CoreModules/Hypergrid/HGWorldMapModule.cs index 44ec825..c1fe5c7 100644 --- a/OpenSim/Region/CoreModules/Hypergrid/HGWorldMapModule.cs +++ b/OpenSim/Region/CoreModules/Hypergrid/HGWorldMapModule.cs @@ -56,6 +56,14 @@ namespace OpenSim.Region.CoreModules.Hypergrid return; m_log.Info("[HGMap] Initializing..."); m_scene = scene; + + m_scene.RegisterModuleInterface(this); + + m_scene.AddCommand( + this, "export-map", + "export-map []", + "Save an image of the world map", HandleExportWorldMapConsoleCommand); + } @@ -110,7 +118,7 @@ namespace OpenSim.Region.CoreModules.Hypergrid } } } - response = mapBlocks; + if (response.Count == 0) { // response still empty => couldn't find the map-tile the user clicked on => tell the client -- cgit v1.1