diff options
Diffstat (limited to 'OpenSim/Region/Environment/Modules/World')
-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; |