From 6ed34cc27e53ad305f9306d5428868ca2a3b2128 Mon Sep 17 00:00:00 2001
From: Brian McBee
Date: Sun, 25 Nov 2007 03:14:43 +0000
Subject: fixed order of map block requests to grid server. flipped map
texture, as it was upside down.
---
OpenSim/Region/Communications/OGS1/OGS1GridServices.cs | 15 +++++++++++++++
1 file changed, 15 insertions(+)
(limited to 'OpenSim/Region/Communications')
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
///
public List RequestNeighbourMapBlocks(int minX, int minY, int maxX, int maxY)
{
+ int temp = 0;
+
+ if (minX > maxX)
+ {
+ temp = minX;
+ minX = maxX;
+ maxX = temp;
+ }
+ if (minY > maxY)
+ {
+ temp = minY;
+ minY = maxY;
+ maxY = temp;
+ }
+
Hashtable respData = MapBlockQuery(minX, minY, maxX, maxY);
List neighbours = new List();
--
cgit v1.1