* Clamps negative values to zero when a terrain is exported in LLRAW format, since LLRAW doesn't support negative values.
* Thanks jonc!
0.6.3-post-fixes
Justin Clarke Casey 2009-02-05 21:54:22 +00:00
parent 10aa027ec8
commit fae5d25e82
1 changed files with 7 additions and 0 deletions

View File

@ -184,6 +184,13 @@ namespace OpenSim.Region.Environment.Modules.World.Terrain.FileLoaders
for (int x = 0; x < map.Width; x++)
{
double t = map[x, (map.Height - 1) - y];
//if height is less than 0, set it to 0 as
//can't save -ve values in a LLRAW file
if (t < 0d)
{
t = 0d;
}
int index = 0;
// The lookup table is pre-sorted, so we either find an exact match or