aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
diff options
context:
space:
mode:
authorAdam Frisby2007-07-29 06:23:07 +0000
committerAdam Frisby2007-07-29 06:23:07 +0000
commitc33b29a105c2491f7c2e9f6747499ea7213ed4a5 (patch)
treeacea08f555b31e0827acbcf8c46a9738a9b3a0f0 /OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
parent* Applying issue#238 - Console help is incomplete. (Thanks CutterRubio) (diff)
downloadopensim-SC-c33b29a105c2491f7c2e9f6747499ea7213ed4a5.zip
opensim-SC-c33b29a105c2491f7c2e9f6747499ea7213ed4a5.tar.gz
opensim-SC-c33b29a105c2491f7c2e9f6747499ea7213ed4a5.tar.bz2
opensim-SC-c33b29a105c2491f7c2e9f6747499ea7213ed4a5.tar.xz
* Applying issue#230 - Avatar stuck at region edge (Thanks Babblefrog!)
* Fix for issue #237 - Sim startup cannot read a terrain file (Reported by CutterRubio)
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 f52d25a..f37d625 100644
--- a/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
+++ b/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
@@ -1010,7 +1010,7 @@ namespace OpenSim.Region.Terrain
1010 for (int y = 0; y < copy.h; y++) 1010 for (int y = 0; y < copy.h; y++)
1011 { 1011 {
1012 // 512 is the largest possible height before colours clamp 1012 // 512 is the largest possible height before colours clamp
1013 int colorindex = (int)(Math.Max(Math.Min(1.0, copy.Get(copy.h - y, x) / 512.0), 0.0) * pallete); 1013 int colorindex = (int)(Math.Max(Math.Min(1.0, copy.Get(copy.h - y, x) / 512.0), 0.0) * (pallete - 1));
1014 bmp.SetPixel(x, y, colours[colorindex]); 1014 bmp.SetPixel(x, y, colours[colorindex]);
1015 } 1015 }
1016 } 1016 }