* Added a check for Infinite or NaN values before updating a heightfield. This may slow down terraforming when it debug mode - feedback appreciated.

0.6.0-stable
Adam Frisby 2008-07-28 00:43:01 +00:00
parent 9fca0aca64
commit e2ce142669
1 changed files with 4 additions and 0 deletions

View File

@ -129,6 +129,10 @@ namespace OpenSim.Region.Environment.Modules.World.Terrain
get { return map[x, y]; }
set
{
// Will "fix" terrain hole problems. Although not fantastically.
if(Double.IsNaN(value) || Double.IsInfinity(value))
return;
if (map[x, y] != value)
{
taint[x / 16, y / 16] = true;