diff options
author | Adam Frisby | 2008-07-28 00:43:01 +0000 |
---|---|---|
committer | Adam Frisby | 2008-07-28 00:43:01 +0000 |
commit | e2ce14266999778c79175916a06f17824472790e (patch) | |
tree | e7d7fff5c9b540bf782069beedecf5ce0202e8c5 /OpenSim/Region/Environment | |
parent | Reinstate the configuration option on XEngine's use of the lexical (diff) | |
download | opensim-SC_OLD-e2ce14266999778c79175916a06f17824472790e.zip opensim-SC_OLD-e2ce14266999778c79175916a06f17824472790e.tar.gz opensim-SC_OLD-e2ce14266999778c79175916a06f17824472790e.tar.bz2 opensim-SC_OLD-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.cs | 4 |
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; |