diff options
author | Adam Frisby | 2007-07-29 06:23:07 +0000 |
---|---|---|
committer | Adam Frisby | 2007-07-29 06:23:07 +0000 |
commit | c33b29a105c2491f7c2e9f6747499ea7213ed4a5 (patch) | |
tree | acea08f555b31e0827acbcf8c46a9738a9b3a0f0 /OpenSim/Region/Terrain.BasicTerrain | |
parent | * Applying issue#238 - Console help is incomplete. (Thanks CutterRubio) (diff) | |
download | opensim-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 '')
-rw-r--r-- | OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs | 2 |
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 | } |