From bb60d8753881196db14921e60abcef65cdf3d1a4 Mon Sep 17 00:00:00 2001 From: Brian McBee Date: Sat, 4 Aug 2007 14:13:02 +0000 Subject: OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs Fix for terraforming: now works across the region, not just when x=y! Wahoo! --- OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OpenSim') 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 for (i = 0; i < w * h; i++) { - heights[i] = (float)heightmap.map[i / w, i % w]; + heights[i] = (float)heightmap.map[i % w, i / w]; } return heights; -- cgit v1.1