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 +++++++++++++++
OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs | 4 ++--
2 files changed, 17 insertions(+), 2 deletions(-)
(limited to 'OpenSim/Region')
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();
diff --git a/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs b/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
index bbbb4d7..4ff22fb 100644
--- a/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
+++ b/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
@@ -1261,13 +1261,13 @@ namespace OpenSim.Region.Terrain
}
Channel copy = heightmap.Copy();
- for (int y = 0; y < copy.h; y++)
+ for (int y = 0; y