OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs

Fix for terraforming: now works across the region, not just when x=y! Wahoo!
This commit is contained in:
Brian McBee
2007-08-04 14:13:02 +00:00
parent e970ee2955
commit bb60d87538

View File

@@ -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;