mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
* Clamps negative values to zero when a terrain is exported in LLRAW format, since LLRAW doesn't support negative values. * Thanks jonc!
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user