Mantis#1501. Thank you kindly, Nebadon, for a patch that

addresses the 'terrain fill 0' error.
0.6.0-stable
Charles Krinke 2008-06-10 16:02:18 +00:00
parent 5910a49da6
commit 53cc63e243
1 changed files with 7 additions and 1 deletions

View File

@ -1046,7 +1046,13 @@ namespace OpenSim.Data.MySQL
// TODO: COMPATIBILITY - Add byte-order conversions
for (int x = 0; x < 256; x++)
for (int y = 0; y < 256; y++)
bw.Write(val[x, y]);
{
double height = val[x, y];
if (height == 0.0)
height = double.Epsilon;
bw.Write(height);
}
return str.ToArray();
}