diff options
Diffstat (limited to 'OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Editing/Flatten.cs')
-rw-r--r-- | OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Editing/Flatten.cs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Editing/Flatten.cs b/OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Editing/Flatten.cs index df34eeb..0946c6a 100644 --- a/OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Editing/Flatten.cs +++ b/OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Editing/Flatten.cs | |||
@@ -109,10 +109,8 @@ namespace libTerrain | |||
109 | z *= z; | 109 | z *= z; |
110 | z -= ((x - rx)*(x - rx)) + ((y - ry)*(y - ry)); | 110 | z -= ((x - rx)*(x - rx)) + ((y - ry)*(y - ry)); |
111 | 111 | ||
112 | if (z < 0) | 112 | if (z > 0.0) |
113 | z = 0; | 113 | Set(x, y, Tools.LinearInterpolate(map[x, y], height, z)); |
114 | |||
115 | Set(x, y, Tools.LinearInterpolate(map[x, y], height, z)); | ||
116 | } | 114 | } |
117 | } | 115 | } |
118 | } | 116 | } |