aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment
diff options
context:
space:
mode:
authorAdam Frisby2008-07-28 00:43:01 +0000
committerAdam Frisby2008-07-28 00:43:01 +0000
commite2ce14266999778c79175916a06f17824472790e (patch)
treee7d7fff5c9b540bf782069beedecf5ce0202e8c5 /OpenSim/Region/Environment
parentReinstate the configuration option on XEngine's use of the lexical (diff)
downloadopensim-SC-e2ce14266999778c79175916a06f17824472790e.zip
opensim-SC-e2ce14266999778c79175916a06f17824472790e.tar.gz
opensim-SC-e2ce14266999778c79175916a06f17824472790e.tar.bz2
opensim-SC-e2ce14266999778c79175916a06f17824472790e.tar.xz
* Added a check for Infinite or NaN values before updating a heightfield. This may slow down terraforming when it debug mode - feedback appreciated.
Diffstat (limited to 'OpenSim/Region/Environment')
-rw-r--r--OpenSim/Region/Environment/Modules/World/Terrain/TerrainChannel.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/Terrain/TerrainChannel.cs b/OpenSim/Region/Environment/Modules/World/Terrain/TerrainChannel.cs
index 24a76f7..0a16341 100644
--- a/OpenSim/Region/Environment/Modules/World/Terrain/TerrainChannel.cs
+++ b/OpenSim/Region/Environment/Modules/World/Terrain/TerrainChannel.cs
@@ -129,6 +129,10 @@ namespace OpenSim.Region.Environment.Modules.World.Terrain
129 get { return map[x, y]; } 129 get { return map[x, y]; }
130 set 130 set
131 { 131 {
132 // Will "fix" terrain hole problems. Although not fantastically.
133 if(Double.IsNaN(value) || Double.IsInfinity(value))
134 return;
135
132 if (map[x, y] != value) 136 if (map[x, y] != value)
133 { 137 {
134 taint[x / 16, y / 16] = true; 138 taint[x / 16, y / 16] = true;