aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/World/LegacyMap
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2014-01-23 23:44:21 +0000
committerJustin Clark-Casey (justincc)2014-01-23 23:44:21 +0000
commita859464e91f724816c2ba588a541981469d58d2b (patch)
tree50ede00a6137a29316f22229d537618bd7db2c53 /OpenSim/Region/CoreModules/World/LegacyMap
parentStop exceptions being generated on agent connection if a telehub object has b... (diff)
downloadopensim-SC_OLD-a859464e91f724816c2ba588a541981469d58d2b.zip
opensim-SC_OLD-a859464e91f724816c2ba588a541981469d58d2b.tar.gz
opensim-SC_OLD-a859464e91f724816c2ba588a541981469d58d2b.tar.bz2
opensim-SC_OLD-a859464e91f724816c2ba588a541981469d58d2b.tar.xz
Add "generate map" console command to allow manual regeneration and storage of maptiles
Primarily for test purposes though could be useful if one prefers to manually update the map tile
Diffstat (limited to 'OpenSim/Region/CoreModules/World/LegacyMap')
-rw-r--r--OpenSim/Region/CoreModules/World/LegacyMap/MapImageModule.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/World/LegacyMap/MapImageModule.cs b/OpenSim/Region/CoreModules/World/LegacyMap/MapImageModule.cs
index 40638f8..61ba5f3 100644
--- a/OpenSim/Region/CoreModules/World/LegacyMap/MapImageModule.cs
+++ b/OpenSim/Region/CoreModules/World/LegacyMap/MapImageModule.cs
@@ -127,7 +127,10 @@ namespace OpenSim.Region.CoreModules.World.LegacyMap
127 try 127 try
128 { 128 {
129 using (Bitmap mapbmp = CreateMapTile()) 129 using (Bitmap mapbmp = CreateMapTile())
130 return OpenJPEG.EncodeFromImage(mapbmp, true); 130 {
131 if (mapbmp != null)
132 return OpenJPEG.EncodeFromImage(mapbmp, true);
133 }
131 } 134 }
132 catch (Exception e) // LEGIT: Catching problems caused by OpenJPEG p/invoke 135 catch (Exception e) // LEGIT: Catching problems caused by OpenJPEG p/invoke
133 { 136 {