Mantis#1501. Thank you kindly, Nebadon, for a patch that
addresses the 'terrain fill 0' error.0.6.0-stable
parent
5910a49da6
commit
53cc63e243
|
@ -1046,7 +1046,13 @@ namespace OpenSim.Data.MySQL
|
||||||
// TODO: COMPATIBILITY - Add byte-order conversions
|
// TODO: COMPATIBILITY - Add byte-order conversions
|
||||||
for (int x = 0; x < 256; x++)
|
for (int x = 0; x < 256; x++)
|
||||||
for (int y = 0; y < 256; y++)
|
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();
|
return str.ToArray();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue