aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-11-19 00:07:34 +0000
committerJustin Clark-Casey (justincc)2011-11-19 00:07:34 +0000
commit01ae916bad672722aa62ee712b7b580d6f5f4370 (patch)
tree82199ee4f473d9639e73a67cc8b2f30aeaeb047b /OpenSim/Services
parentReplace HttpServer_OpenSim.dll with Oren Hurvitz's patch applied. (diff)
downloadopensim-SC_OLD-01ae916bad672722aa62ee712b7b580d6f5f4370.zip
opensim-SC_OLD-01ae916bad672722aa62ee712b7b580d6f5f4370.tar.gz
opensim-SC_OLD-01ae916bad672722aa62ee712b7b580d6f5f4370.tar.bz2
opensim-SC_OLD-01ae916bad672722aa62ee712b7b580d6f5f4370.tar.xz
Don't register a region twice on both official registration and maptile regeneration.
Maptile storage appears orthogonal to region registration
Diffstat (limited to '')
-rw-r--r--OpenSim/Services/Connectors/MapImage/MapImageServiceConnector.cs4
-rw-r--r--OpenSim/Services/GridService/GridService.cs1
-rw-r--r--OpenSim/Services/MapImageService/MapImageService.cs2
3 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Services/Connectors/MapImage/MapImageServiceConnector.cs b/OpenSim/Services/Connectors/MapImage/MapImageServiceConnector.cs
index 69e2d17..e46714e 100644
--- a/OpenSim/Services/Connectors/MapImage/MapImageServiceConnector.cs
+++ b/OpenSim/Services/Connectors/MapImage/MapImageServiceConnector.cs
@@ -129,7 +129,9 @@ namespace OpenSim.Services.Connectors
129 129
130 } 130 }
131 else 131 else
132 m_log.DebugFormat("[MAP IMAGE CONNECTOR]: RegisterRegion received null reply"); 132 {
133 m_log.DebugFormat("[MAP IMAGE CONNECTOR]: Map post received null reply");
134 }
133 } 135 }
134 catch (Exception e) 136 catch (Exception e)
135 { 137 {
diff --git a/OpenSim/Services/GridService/GridService.cs b/OpenSim/Services/GridService/GridService.cs
index 05cfe5f..768e4e1 100644
--- a/OpenSim/Services/GridService/GridService.cs
+++ b/OpenSim/Services/GridService/GridService.cs
@@ -156,6 +156,7 @@ namespace OpenSim.Services.GridService
156 regionInfos.RegionID, regionInfos.RegionLocX, regionInfos.RegionLocY, scopeID); 156 regionInfos.RegionID, regionInfos.RegionLocX, regionInfos.RegionLocY, scopeID);
157 return "Region overlaps another region"; 157 return "Region overlaps another region";
158 } 158 }
159
159 if ((region != null) && (region.RegionID == regionInfos.RegionID) && 160 if ((region != null) && (region.RegionID == regionInfos.RegionID) &&
160 ((region.posX != regionInfos.RegionLocX) || (region.posY != regionInfos.RegionLocY))) 161 ((region.posX != regionInfos.RegionLocX) || (region.posY != regionInfos.RegionLocY)))
161 { 162 {
diff --git a/OpenSim/Services/MapImageService/MapImageService.cs b/OpenSim/Services/MapImageService/MapImageService.cs
index 7e7391c..83727b6 100644
--- a/OpenSim/Services/MapImageService/MapImageService.cs
+++ b/OpenSim/Services/MapImageService/MapImageService.cs
@@ -138,6 +138,8 @@ namespace OpenSim.Services.MapImageService
138 138
139 public byte[] GetMapTile(string fileName, out string format) 139 public byte[] GetMapTile(string fileName, out string format)
140 { 140 {
141// m_log.DebugFormat("[MAP IMAGE SERVICE]: Getting map tile {0}", fileName);
142
141 format = ".jpg"; 143 format = ".jpg";
142 string fullName = Path.Combine(m_TilesStoragePath, fileName); 144 string fullName = Path.Combine(m_TilesStoragePath, fileName);
143 if (File.Exists(fullName)) 145 if (File.Exists(fullName))