aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
diff options
context:
space:
mode:
authorBrian McBee2007-08-04 14:13:02 +0000
committerBrian McBee2007-08-04 14:13:02 +0000
commitbb60d8753881196db14921e60abcef65cdf3d1a4 (patch)
tree1f8b12d6f3ebe19bd9d53da28d0d31c30c64b00e /OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
parent* More work on PermissionManager - going AFK for a bit. (diff)
downloadopensim-SC-bb60d8753881196db14921e60abcef65cdf3d1a4.zip
opensim-SC-bb60d8753881196db14921e60abcef65cdf3d1a4.tar.gz
opensim-SC-bb60d8753881196db14921e60abcef65cdf3d1a4.tar.bz2
opensim-SC-bb60d8753881196db14921e60abcef65cdf3d1a4.tar.xz
OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
Fix for terraforming: now works across the region, not just when x=y! Wahoo!
Diffstat (limited to 'OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs')
-rw-r--r--OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs b/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
index 1e0e978..bd66c02 100644
--- a/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
+++ b/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
@@ -162,7 +162,7 @@ namespace OpenSim.Region.Terrain
162 162
163 for (i = 0; i < w * h; i++) 163 for (i = 0; i < w * h; i++)
164 { 164 {
165 heights[i] = (float)heightmap.map[i / w, i % w]; 165 heights[i] = (float)heightmap.map[i % w, i / w];
166 } 166 }
167 167
168 return heights; 168 return heights;