diff options
Diffstat (limited to 'OpenSim/Region/Communications/OGS1/OGS1GridServices.cs')
-rw-r--r-- | OpenSim/Region/Communications/OGS1/OGS1GridServices.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs b/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs index 3708fff..6b2407a 100644 --- a/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs +++ b/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs | |||
@@ -223,6 +223,21 @@ namespace OpenSim.Region.Communications.OGS1 | |||
223 | /// <returns></returns> | 223 | /// <returns></returns> |
224 | public List<MapBlockData> RequestNeighbourMapBlocks(int minX, int minY, int maxX, int maxY) | 224 | public List<MapBlockData> RequestNeighbourMapBlocks(int minX, int minY, int maxX, int maxY) |
225 | { | 225 | { |
226 | int temp = 0; | ||
227 | |||
228 | if (minX > maxX) | ||
229 | { | ||
230 | temp = minX; | ||
231 | minX = maxX; | ||
232 | maxX = temp; | ||
233 | } | ||
234 | if (minY > maxY) | ||
235 | { | ||
236 | temp = minY; | ||
237 | minY = maxY; | ||
238 | maxY = temp; | ||
239 | } | ||
240 | |||
226 | Hashtable respData = MapBlockQuery(minX, minY, maxX, maxY); | 241 | Hashtable respData = MapBlockQuery(minX, minY, maxX, maxY); |
227 | 242 | ||
228 | List<MapBlockData> neighbours = new List<MapBlockData>(); | 243 | List<MapBlockData> neighbours = new List<MapBlockData>(); |